|
21 | 21 | import com.sap.hadoop.windowing.query2.translate.Translator;
|
22 | 22 | import com.sap.hadoop.windowing.runtime2.LocalExecutor;
|
23 | 23 | import com.sap.hadoop.windowing.runtime2.QueryOutputPrinter;
|
24 |
| -import com.sap.hadoop.windowing.runtime2.ThriftBasedHiveQueryExecutor; |
| 24 | +//import com.sap.hadoop.windowing.runtime2.ThriftBasedHiveQueryExecutor; |
25 | 25 | import com.sap.hadoop.windowing.runtime2.WindowingShell;
|
26 | 26 |
|
27 | 27 | public abstract class BaseTest extends ClusterMapReduceDelegate
|
@@ -69,7 +69,7 @@ public static void setupClass() throws Exception
|
69 | 69 |
|
70 | 70 | HiveConf hCfg = new HiveConf(conf, conf.getClass());
|
71 | 71 | wshell = new WindowingShell(hCfg, new Translator(), new LocalExecutor(new PrintStream(outStream)));
|
72 |
| - wshell.setHiveQryExec(new ThriftBasedHiveQueryExecutor(conf)); |
| 72 | + //wshell.setHiveQryExec(new ThriftBasedHiveQueryExecutor(conf)); |
73 | 73 | outPrinter = null;
|
74 | 74 | }
|
75 | 75 |
|
@@ -113,9 +113,15 @@ fs, new Path("/user/hive/warehouse/test.db/"),
|
113 | 113 |
|
114 | 114 | public static void LOCAL(Configuration conf)
|
115 | 115 | {
|
116 |
| - conf.set("hive.metastore.uris", "thrift://localhost:9083"); |
117 |
| - conf.set(Constants.HIVE_THRIFTSERVER, "localhost"); |
118 |
| - conf.setInt(Constants.HIVE_THRIFTSERVER_PORT, 10000); |
| 116 | + conf.set("javax.jdo.option.ConnectionURL", |
| 117 | + "jdbc:mysql://localhost/hivems?createDatabaseIfNotExist=true"); |
| 118 | + conf.set("javax.jdo.option.ConnectionDriverName", "com.mysql.jdbc.Driver"); |
| 119 | + conf.set("javax.jdo.option.ConnectionUserName", "hiveuser"); |
| 120 | + conf.set("javax.jdo.option.ConnectionPassword", "hive"); |
| 121 | + conf.set("hive.metastore.local", "true"); |
| 122 | + |
| 123 | + //conf.set(Constants.HIVE_THRIFTSERVER, "localhost"); |
| 124 | + //conf.setInt(Constants.HIVE_THRIFTSERVER_PORT, 10000); |
119 | 125 | conf.set("io.sort.mb", "200");
|
120 | 126 | conf.set("mapred.compress.map.output", "true");
|
121 | 127 | conf.set("mapred.child.java.opts", "-Xms128m -Xmx512m");
|
|
0 commit comments