19 #include <boost/foreach.hpp>
34 DEFINE_int32(num_backends, 3,
"The number of backends to start");
43 using namespace impala;
45 int main(
int argc,
char** argv) {
47 if (FLAGS_num_backends <= 0) {
48 LOG(ERROR) <<
"-num_backends arg must be > 0";
59 int base_be_port = FLAGS_be_port;
60 int base_subscriber_port = 21500;
61 int base_webserver_port = 25000;
63 int beeswax_port = 21000;
68 LOG(INFO) <<
"Started in-process statestore";
70 vector<InProcessImpalaServer*> impala_servers;
71 for (
int i = 0; i < FLAGS_num_backends; ++i) {
72 impala_servers.push_back(
74 base_subscriber_port + i, base_webserver_port + i,
75 FLAGS_hostname, 23000));
78 EXIT_IF_ERROR(impala_servers[i]->StartWithClientServers(beeswax_port, hs2_port,
79 FLAGS_use_statestore));
81 EXIT_IF_ERROR(impala_servers[i]->StartAsBackendOnly(FLAGS_use_statestore));
85 impala_servers[0]->Join();
DECLARE_string(principal)
An in-process statestore, with webserver and metrics.
DECLARE_bool(use_statestore)
int main(int argc, char **argv)
DEFINE_int32(num_backends, 3,"The number of backends to start")
void InitCommonRuntime(int argc, char **argv, bool init_jvm, TestInfo::Mode m=TestInfo::NON_TEST)
static void InitLibhdfs()
Call this prior to any libhdfs calls.
static Status InitJNI()
Grab all of the Java classes needed to get data into and out of HBase.
#define EXIT_IF_ERROR(stmt)
static void InitializeLlvm(bool load_backend=false)