配置文件,在程序中都没有设置
- SparkConf sparkConf = new SparkConf();
- sparkConf.setMaster("spark://centos.host1:7077");
- sparkConf.setAppName("Spark HBase");
- JavaSparkContext context = new JavaSparkContext(sparkConf);
-
- Configuration conf = HBaseConfiguration.create();
- conf.set("hbase.zookeeper.property.clientPort", "2181");
- conf.set("hbase.zookeeper.quorum", "centos.host1");
- conf.set("hbase.master", "centos.host1:60000");
复制代码
按照自己的实际情况,修改下。
|