[ https://issues.apache.org/jira/browse/HBASE-21267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16637813#comment-16637813 ]
ramkrishna.s.vasudevan commented on HBASE-21267: ------------------------------------------------ [~malaskat] - You have any suggestions here. > 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 > Priority: Minor > > 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)