You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org> on 2018/10/04 04:35:00 UTC

[jira] [Created] (HBASE-21267) Spark in java examples throws 'A master URL must be set in your configuration'

ramkrishna.s.vasudevan created HBASE-21267:
----------------------------------------------

             Summary: Spark in java examples throws 'A master URL must be set in your configuration'
                 Key: HBASE-21267
                 URL: https://issues.apache.org/jira/browse/HBASE-21267
             Project: HBase
          Issue Type: Test
            Reporter: ramkrishna.s.vasudevan
            Assignee: ramkrishna.s.vasudevan


Trying out some spark on java examples I found this
'A master URL must be set in your configuration'.
It comes from here
bq.    SparkConf sparkConf = new SparkConf().setAppName("JavaHBaseBulkPutExample " + tableName);
Adding the below line solved the problem, 
bq. SparkConf sparkConf = new SparkConf().setAppName("JavaHBaseBulkPutExample " + tableName).setMaster("local[2]")
But am not sure if there is any better way.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)