<?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: Missing cloudbreak home directory after cluster creation in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Missing-cloudbreak-home-directory-after-cluster-creation/m-p/183143#M70921</link>
    <description>&lt;P&gt;that's nice trick, will try that! Will also check user creation. The problematic part is - is it feature or a bug that it's not set after fresh startup. I'm trying to automate cluster creation for ETL (cron based) and it may be difficult to explain that I need those 3 lines if this is default cloudbreak user that is presented in each user guide &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2017 22:18:12 GMT</pubDate>
    <dc:creator>radoslaw_stanki</dc:creator>
    <dc:date>2017-11-07T22:18:12Z</dc:date>
    <item>
      <title>Missing cloudbreak home directory after cluster creation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Missing-cloudbreak-home-directory-after-cluster-creation/m-p/183140#M70918</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've set up a fresh cluster using HDC console. When following instructions:&lt;/P&gt;&lt;PRE&gt;&amp;gt; export SPARK_MAJOR_VERSION=2
&amp;gt; spark-shell —master yarn

[...]
AccessControlException: Permission denied: user=cloudbreak, access=WRITE, inode=“/user/cloudbreak/.sparkStaging/application_1510057948417_0004":hdfs:hdfs:drwxr-xr-x&lt;/PRE&gt;&lt;P&gt;Same happens with pyspark.&lt;/P&gt;&lt;P&gt;It looks like home directory is missing but I'm unable to create one (lack of access to hdfs account).&lt;/P&gt;&lt;P&gt;Is something missing in template or steps I follow.&lt;/P&gt;&lt;P&gt;I can try to do workarounds like pyspark --master yarn --conf spark.yarn.stagingDir=/tmp/ but still I end up with:&lt;/P&gt;&lt;PRE&gt;17/11/07 13:30:59 ERROR SparkContext: Error initializing SparkContext.
org.apache.spark.SparkException: Yarn application has already ended! It might have been killed or unable to launch application master.
&lt;/PRE&gt;&lt;P&gt;Running example:&lt;/P&gt;&lt;PRE&gt;spark-submit --conf spark.yarn.stagingDir=/tmp/  --class org.apache.spark.examples.SparkPi --master yarn --executor-memory 2G --num-executors 5 /usr/hdp/current/spark2-client/examples/jars/spark-examples_2.11-2.1.1.2.6.1.4-2.jar  100&lt;/PRE&gt;&lt;P&gt;failed with same issue, on RM site I can find:&lt;/P&gt;&lt;PRE&gt;Application application_1510057948417_0022 failed 2 times due to AM Container for appattempt_1510057948417_0022_000002 exited with exitCode: -1000
For more detailed output, check the application tracking page: &lt;A href="http://ip-172-30-12-239.example.com:8088/cluster/app/application_1510057948417_0022" target="_blank"&gt;http://ip-172-30-12-239.example.com:8088/cluster/app/application_1510057948417_0022&lt;/A&gt; Then click on links to logs of each attempt.
Diagnostics: Failing this attempt. Failing the application.
&lt;/PRE&gt;&lt;P&gt;But there are no logs available for attempt and yarn cmd doesn't provide logs as well: "Can not find the logs for the application: application_1510057948417_0022 with the appOwner: cloudbreak" &lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 21:40:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Missing-cloudbreak-home-directory-after-cluster-creation/m-p/183140#M70918</guid>
      <dc:creator>radoslaw_stanki</dc:creator>
      <dc:date>2017-11-07T21:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Missing cloudbreak home directory after cluster creation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Missing-cloudbreak-home-directory-after-cluster-creation/m-p/183141#M70919</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48161/radoslawstankiewicz.html" nodeid="48161"&gt;@Radosław Stankiewicz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Following is the HDFS directory which has "hdfs:hdfs" access.&lt;/P&gt;&lt;PRE&gt;user=cloudbreak, access=WRITE, inode=“/user/cloudbreak/.sparkStaging/application_1510057948417_0004":hdfs:hdfs:drwxr-xr-x&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Can you please try this "&lt;STRONG&gt;sudo su - hdfs&lt;/STRONG&gt;" ?&lt;/P&gt;&lt;PRE&gt;# sudo su - hdfs
# hdfs dfs -chown -R cloudbreak:hdfs /user/cloudbreak
# hdfs dfs -chmod -R 777 /user/cloudbreak&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Ambari 2.5 onwards we have a feature to auto create the home directory for the newly created users on HDFS. May be you can try creating a new user.   &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.0.3/bk_ambari-administration/content/create_user_home_directory.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.0.3/bk_ambari-administration/content/create_user_home_directory.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 22:06:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Missing-cloudbreak-home-directory-after-cluster-creation/m-p/183141#M70919</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-07T22:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Missing cloudbreak home directory after cluster creation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Missing-cloudbreak-home-directory-after-cluster-creation/m-p/183142#M70920</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48161/radoslawstankiewicz.html" nodeid="48161"&gt;@Radosław Stankiewicz&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If kerberos is not enabled in your cluster then you can also Try to Fake "cloudbreak" user to act as "hdfs" user by running the following command:&lt;/P&gt;&lt;P&gt;By setting &lt;STRONG&gt;"HADOOP_USER_NAME=hdfs"&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# export HADOOP_USER_NAME=hdfs
# hdfs dfs -chown -R cloudbreak:hdfs /user/cloudbreak
# hdfs dfs -chmod -R 777 /user/cloudbreak&amp;lt;br&amp;gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;And once the permission on the directory is changed then you can open a new terminal and run your commands as "cloudbreak" user.   Please do not forget to unset the "HADOOP_USER_NAME=hdfs"&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48161/radoslawstankiewicz.html" nodeid="48161"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 22:13:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Missing-cloudbreak-home-directory-after-cluster-creation/m-p/183142#M70920</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-07T22:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Missing cloudbreak home directory after cluster creation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Missing-cloudbreak-home-directory-after-cluster-creation/m-p/183143#M70921</link>
      <description>&lt;P&gt;that's nice trick, will try that! Will also check user creation. The problematic part is - is it feature or a bug that it's not set after fresh startup. I'm trying to automate cluster creation for ETL (cron based) and it may be difficult to explain that I need those 3 lines if this is default cloudbreak user that is presented in each user guide &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 22:18:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Missing-cloudbreak-home-directory-after-cluster-creation/m-p/183143#M70921</guid>
      <dc:creator>radoslaw_stanki</dc:creator>
      <dc:date>2017-11-07T22:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Missing cloudbreak home directory after cluster creation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Missing-cloudbreak-home-directory-after-cluster-creation/m-p/183144#M70922</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;, manual directory creation did the trick and all the spark apps are working correctly now. Still think it's a bug but workaround is good enough for me. &lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 23:46:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Missing-cloudbreak-home-directory-after-cluster-creation/m-p/183144#M70922</guid>
      <dc:creator>radoslaw_stanki</dc:creator>
      <dc:date>2017-11-07T23:46:22Z</dc:date>
    </item>
  </channel>
</rss>

