Commit graph

359 commits

Author SHA1 Message Date
Matt Jaffee
232cf53781 rename config function and have it return error 2017-03-17 16:43:04 -05:00
Matt Jaffee
e1a582ad2c experimenting with cascading config
2 changes unrelated to cascading config:

1. using cobra.Command.RunE instead of just Run - similar behavior to log + exit,
but simpler. Also prints error message, then usage, then error again which is
nice.

2. getting serveCmd.Flags() once, and re-using it. More readable methinks.

For cascading config, I'm trying to set things up so that we can define the
flags once, and have them work from a config file, environment variable, or
command line. I also don't want references to viper scattered throughout our
code, so I want to set the config at startup, and not touch it from then on.

The idea here is to iterate through the set up command line flags, and then set
their values from viper which knows about the commmand line, the environment,
and the config file, and will pick the right one. The command line flags were
set pointing to the correct config values in the pilosa object, so the right
values will be set automatically.
2017-03-17 16:43:04 -05:00
Matt Jaffee
72de534c8c remove duplicate Version/BuildTime from pilosa/server
use only the pilosa/cmd Version and BuildTime which are populated by the ldflags
in the Makefile
2017-03-09 11:39:11 -06:00
Matt Jaffee
fa9586f64f remove useless print 2017-03-07 13:18:51 -06:00
Matt Jaffee
555a514e37 code review tweaks 2017-03-07 11:30:31 -06:00
Matt Jaffee
c7caea6b30 fix short help strings on commands 2017-03-06 16:45:37 -06:00
Matt Jaffee
f463ab9d9b make inspect behave like pilosactl version 2017-03-06 16:37:41 -06:00
Matt Jaffee
756c44c17d fix bugs with pilosa server -config and remove dead code 2017-03-06 10:19:50 -06:00
Matt Jaffee
a47f93329e remove pilosactl and add version/build to root cmd 2017-03-03 15:24:39 -06:00
Matt Jaffee
64f007547e move bench to subcommand 2017-03-03 15:14:02 -06:00
Matt Jaffee
01020d06a8 mvoe check to subcommand 2017-03-03 15:05:59 -06:00
Matt Jaffee
ff532f2064 fix help text in restore command 2017-03-03 15:01:29 -06:00
Matt Jaffee
2c1929a063 move inspect to subcommand 2017-03-03 15:00:54 -06:00
Matt Jaffee
21478cb852 move restore to subcommand 2017-03-03 14:53:35 -06:00
Matt Jaffee
6dc164da69 fix copy/paste bug in export subcommand 2017-03-03 14:47:47 -06:00
Matt Jaffee
f20e6c193d move backup to subcommand 2017-03-03 14:46:45 -06:00
Matt Jaffee
312a9a5334 move sort to subcommand 2017-03-03 14:38:44 -06:00
Matt Jaffee
362539fe2d make export a subcommand 2017-03-03 14:21:17 -06:00
Matt Jaffee
e349dca06a move import to subcommand 2017-03-03 14:11:12 -06:00
Matt Jaffee
ed43eca004 move "config" to subcommand 2017-03-03 13:35:06 -06:00
Matt Jaffee
02c3c6d3e6 use cobra/viper and move cmd/pilosa to server subcommand 2017-03-03 13:03:57 -06:00
Matthew Jaffee
13d0b42c49 Merge pull request #346 from jaffee/273-breakout-pilosactl
273 breakout pilosactl
2017-03-03 10:48:36 -06:00
Ben Johnson
246649b0c8 Merge pull request #329 from benbjohnson/schema
Add basic schema support.
2017-02-28 12:27:39 -07:00
Matt Jaffee
77372fe3cc remove creator/bagent/bspawn 2017-02-24 15:50:26 -06:00
Ben Johnson
7de0293034 Add basic schema support.
Databases and frames now require explicit creation and have the
option of setting row & column labels. If no labels are provided
then the default `id` and `profileID` labels are used.
2017-02-20 13:55:03 -07:00
Cody Soyland
8258ffbea4 Remove random seed call that was accidentally committed 2017-02-17 16:55:01 -06:00
Cody Soyland
2d09731dfd Add Makefile and versioning/build time in pilosa/pilosactl 2017-02-17 16:37:36 -06:00
Matt Jaffee
545a0cff4b Revert "pilosactl builds - fixed compatibility with pql changes"
This reverts commit d6e2be97b1.
2017-02-10 09:11:23 -06:00
Matt Jaffee
8beb5e0707 pilosactl builds - fixed compatibility with pql changes
remove randquery benchmark entirely and modify sliceheight to work with latest
pql changes.
2017-02-09 15:59:18 -06:00
Travis
71d3074b38 for the default version number, include the v 2017-02-03 09:23:15 -06:00
Travis
d0bdea11c5 use the Build parameter as the Version in handler
Standardize on `Version` for the build version
2017-02-02 12:08:03 -06:00
jaffee
8e9ccb0422 use temp location for pilosactl and pilosa binaries
I did it this way instead of using mktemp because
a) mktemp would have created a different filename on every host, which would
make the client side logic much more confusing
b) mktemp isn't guaranteed to be available everywhere, so we're not losing much
by assuming /tmp exists.
2017-01-25 15:17:06 -06:00
jaffee
192a06c1fa add explanatory prints to stderr in pilosactl 2017-01-20 16:55:24 -06:00
Cody Soyland
ca11643a5a Add ClearBit support to Zipf benchmark 2017-01-19 16:41:43 -06:00
jaffee
0c4cae30fc remove agentNum from Benchmark.Run
Benchmarks should modify their parameters in Init based on the agentNum
2017-01-18 20:57:14 -06:00
jaffee
d996e9d0b6 make bspawn config files consistent and minimal 2017-01-16 12:22:53 -06:00
jaffee
e92158dea6 show spawn config in output instead of just agents 2017-01-16 12:18:49 -06:00
jaffee
06cf5e2223 default -human to true. show defaults in Usage() 2017-01-16 12:05:58 -06:00
jaffee
b3ae286a10 bspawn tweaks and bugfix
fix grammar in comment
always use creator args if pilosaHosts isn't set
use creator's FinalHosts rather than Hosts
2017-01-13 20:50:33 -06:00
jaffee
75925db611 make pilosactl Usage(s) more consistent 2017-01-13 15:15:52 -06:00
jaffee
7533ca4ab1 don't connect to hosts twice when creating remote cluster 2017-01-13 14:52:42 -06:00
jaffee
a02b8a5854 dont' include stdin/out/err in create output 2017-01-13 14:51:45 -06:00
jaffee
09be21799b remove 'type' flag from creator
type is implied by whether or not 'hosts' is set
2017-01-13 14:26:24 -06:00
jaffee
47b362925a improve output, docs, default behavior for create cmd 2017-01-13 13:46:11 -06:00
jaffee
ae6293c347 fix up bspawn Usage, and field naming 2017-01-12 15:45:02 -06:00
jaffee
c6aa941521 rename ssh stuff for consistency and less stuttering 2017-01-12 14:32:50 -06:00
jaffee
58e173ba57 options to build and copy pilosa binary for cluster creation
also some refactoring
2017-01-12 14:32:50 -06:00
Alan Bernstein
289093de7f Remove absolute path to pilosactl 2017-01-11 13:46:32 -06:00
Alan Bernstein
a680fc7b1a Remove -output flag from bagent 2017-01-11 13:12:19 -06:00
Alan Bernstein
9ab38c488f Switch default from s3 to stdout 2017-01-11 13:11:55 -06:00