<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Sandbox: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sandbox-Initial-job-has-not-accepted-any-resources-check/m-p/123563#M51280</link>
    <description>&lt;P&gt;Spark has lazy execution so show is where it tries to connect.  &lt;/P&gt;&lt;P&gt;can you access that  db from the sandbox command line check for errors&lt;/P&gt;&lt;P&gt;check postgres permissions and sandbox mapping / firewalls. &lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2017 08:07:35 GMT</pubDate>
    <dc:creator>TimothySpann</dc:creator>
    <dc:date>2017-01-11T08:07:35Z</dc:date>
    <item>
      <title>Sandbox: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sandbox-Initial-job-has-not-accepted-any-resources-check/m-p/123562#M51279</link>
      <description>&lt;P&gt;I'm using spark to import data from a postgres database on my host machine into hdp sandbox. I get this error everytime.&lt;/P&gt;&lt;P&gt;Here is the command call&lt;/P&gt;&lt;PRE&gt;spark-submit \
  --packages org.apache.spark:spark-streaming-kafka_2.10:1.6.0,com.databricks:spark-csv_2.10:1.5.0,com.databricks:spark-avro_2.10:2.0.1 \
  --master yarn \
  --deploy-mode client \
  --jars ${L_ALL_JARS} \
  --class ${L_CLASS} \
  bdi.spark.jar ${HDM_CUSTOMER_KEY} yarn-client&lt;/PRE&gt;&lt;P&gt;scala&lt;/P&gt;&lt;PRE&gt;val sparkConf = new SparkConf().setAppName(args(2))  

val sc = new SparkContext(sparkConf)

val hive = new HiveContext(sc)

val df = sql.read.format("jdbc").options(opts).load.cache

df.show

&lt;/PRE&gt;&lt;P&gt;The error doesn't occur util I call an action on the dataframe show().&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 06:30:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sandbox-Initial-job-has-not-accepted-any-resources-check/m-p/123562#M51279</guid>
      <dc:creator>hdulayibi</dc:creator>
      <dc:date>2017-01-11T06:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sandbox-Initial-job-has-not-accepted-any-resources-check/m-p/123563#M51280</link>
      <description>&lt;P&gt;Spark has lazy execution so show is where it tries to connect.  &lt;/P&gt;&lt;P&gt;can you access that  db from the sandbox command line check for errors&lt;/P&gt;&lt;P&gt;check postgres permissions and sandbox mapping / firewalls. &lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 08:07:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sandbox-Initial-job-has-not-accepted-any-resources-check/m-p/123563#M51280</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2017-01-11T08:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sandbox-Initial-job-has-not-accepted-any-resources-check/m-p/123564#M51281</link>
      <description>&lt;P&gt;I changed the code to read from Hive instead and still got the same error.&lt;/P&gt;&lt;PRE&gt;val sparkConf = new SparkConf().setAppName("test-spark").set("spark.eventLog.enabled", "true")
val sc = new SparkContext(sparkConf)  
val sql = new HiveContext(sc)
sql.sql("SELECT * FROM foodmart.customer").show()&lt;/PRE&gt;&lt;P&gt; I added these args to the call but also no luck.&lt;/P&gt;&lt;P&gt;--num-executors 4 \&lt;/P&gt;&lt;P&gt;  --executor-memory 1G \&lt;/P&gt;&lt;P&gt;  --driver-memory 1G \&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 01:31:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sandbox-Initial-job-has-not-accepted-any-resources-check/m-p/123564#M51281</guid>
      <dc:creator>hdulayibi</dc:creator>
      <dc:date>2017-01-12T01:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sandbox-Initial-job-has-not-accepted-any-resources-check/m-p/123565#M51282</link>
      <description>&lt;P&gt;I changed to the call to include the args below and it worked.&lt;/P&gt;&lt;P&gt;--num-executors 4 \&lt;/P&gt;&lt;P&gt;--executor-memory 512M \&lt;/P&gt;&lt;P&gt;--driver-memory 512M \&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 01:36:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sandbox-Initial-job-has-not-accepted-any-resources-check/m-p/123565#M51282</guid>
      <dc:creator>hdulayibi</dc:creator>
      <dc:date>2017-01-12T01:36:06Z</dc:date>
    </item>
  </channel>
</rss>

