<?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 Missing /user/admin directory on sandbox in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118288#M81071</link>
    <description>&lt;P&gt;Just started using a Hortonworks sandbox on Azure, no previous experience. Started going through the 'How to process data with Apache Hive' tutorial...one of the first steps is to upload files to /user/admin. It doesn't exist. I am not able to create the admin directory under /user because the add directory option is greyed out. Instead I create a new directory under /tmp and successfully uploaded the files. However I get to loading the data into the table:&lt;/P&gt;&lt;P&gt;LOAD DATA INPATH '/tmp/admin/Batting.csv' OVERWRITE INTO TABLE temp_batting;&lt;/P&gt;&lt;P&gt;and get :&lt;/P&gt;&lt;P&gt;INFO : Loading data to table default.temp_batting from hdfs://sandbox.hortonworks.com:8020/tmp/admin/Batting.csv
ERROR : Failed with exception Unable to move source hdfs://sandbox.hortonworks.com:8020/tmp/admin/Batting.csv to destination hdfs://sandbox.hortonworks.com:8020/apps/hive/warehouse/temp_batting/Batting.csv
org.apache.hadoop.hive.ql.metadata.HiveException: Unable to move source hdfs://sandbox.hortonworks.com:8020/tmp/admin/Batting.csv to destination&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Caused by: org.apache.hadoop.security.AccessControlException: Permission denied: user=hive, access=WRITE, inode="/tmp/admin/Batting.csv":admin:hdfs:drwxr-xr-x&lt;/P&gt;&lt;P&gt;Obviously a permissions error, but how do I change them, and how can I create /user/admin for future use?&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;</description>
    <pubDate>Sat, 30 Jan 2016 19:31:53 GMT</pubDate>
    <dc:creator>adrian_savory</dc:creator>
    <dc:date>2016-01-30T19:31:53Z</dc:date>
    <item>
      <title>Missing /user/admin directory on sandbox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118288#M81071</link>
      <description>&lt;P&gt;Just started using a Hortonworks sandbox on Azure, no previous experience. Started going through the 'How to process data with Apache Hive' tutorial...one of the first steps is to upload files to /user/admin. It doesn't exist. I am not able to create the admin directory under /user because the add directory option is greyed out. Instead I create a new directory under /tmp and successfully uploaded the files. However I get to loading the data into the table:&lt;/P&gt;&lt;P&gt;LOAD DATA INPATH '/tmp/admin/Batting.csv' OVERWRITE INTO TABLE temp_batting;&lt;/P&gt;&lt;P&gt;and get :&lt;/P&gt;&lt;P&gt;INFO : Loading data to table default.temp_batting from hdfs://sandbox.hortonworks.com:8020/tmp/admin/Batting.csv
ERROR : Failed with exception Unable to move source hdfs://sandbox.hortonworks.com:8020/tmp/admin/Batting.csv to destination hdfs://sandbox.hortonworks.com:8020/apps/hive/warehouse/temp_batting/Batting.csv
org.apache.hadoop.hive.ql.metadata.HiveException: Unable to move source hdfs://sandbox.hortonworks.com:8020/tmp/admin/Batting.csv to destination&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Caused by: org.apache.hadoop.security.AccessControlException: Permission denied: user=hive, access=WRITE, inode="/tmp/admin/Batting.csv":admin:hdfs:drwxr-xr-x&lt;/P&gt;&lt;P&gt;Obviously a permissions error, but how do I change them, and how can I create /user/admin for future use?&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2016 19:31:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118288#M81071</guid>
      <dc:creator>adrian_savory</dc:creator>
      <dc:date>2016-01-30T19:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Missing /user/admin directory on sandbox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118289#M81072</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2491/adriansavory.html" nodeid="2491"&gt;@Adrian Savory&lt;/A&gt; &lt;/P&gt;&lt;P&gt;See the following:&lt;A target="_blank" href="https://community.hortonworks.com/questions/7739/permission-denied-and-no-such-file-or-directory.html"&gt;https://community.hortonworks.com/questions/7739/permission-denied-and-no-such-file-or-directory.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;sudo su - hdfs

hdfs dfs -mkdir /user/admin

hdfs dfs -chown root:hdfs /user/admin
&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 Jan 2016 19:55:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118289#M81072</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2016-01-30T19:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Missing /user/admin directory on sandbox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118290#M81073</link>
      <description>&lt;P&gt;@&lt;A href="https://community.cloudera.com/users/369/amcbarnett.html"&gt;Ancil McBarnett&lt;/A&gt; Thanks for the prompt reply. Where can I run these commands from? I've only really used the Hive view so far.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2016 20:41:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118290#M81073</guid>
      <dc:creator>adrian_savory</dc:creator>
      <dc:date>2016-01-30T20:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Missing /user/admin directory on sandbox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118291#M81074</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2491/adriansavory.html" nodeid="2491"&gt;@Adrian Savory&lt;/A&gt;   You can use ssh  or browser&lt;/P&gt;&lt;P&gt;&lt;A href="http://127.0.0.1:4200"&gt;http://127.0.0.1:4200&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;ssh -p 2222 root@127.0.0.1&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2016 20:55:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118291#M81074</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-01-30T20:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Missing /user/admin directory on sandbox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118292#M81075</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2491/adriansavory.html" nodeid="2491"&gt;@Adrian Savory&lt;/A&gt; what tutorial are you following.  I thought the tutorial mentioned to load to /tmp/admin which it states to create I believe mentioned here: &lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/#section_4" target="_blank"&gt;http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/#section_4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2016 02:29:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118292#M81075</guid>
      <dc:creator>rmolina</dc:creator>
      <dc:date>2016-01-31T02:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Missing /user/admin directory on sandbox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118293#M81076</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/527/rmolina.html" nodeid="527"&gt;@rmolina&lt;/A&gt; it's this one:&lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.com/hadoop-tutorial/how-to-process-data-with-apache-hive/" target="_blank"&gt;http://hortonworks.com/hadoop-tutorial/how-to-process-data-with-apache-hive/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Navigate to &lt;CODE&gt;/user/admin&lt;/CODE&gt; and click on the Upload button.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 21:48:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118293#M81076</guid>
      <dc:creator>adrian_savory</dc:creator>
      <dc:date>2016-02-01T21:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Missing /user/admin directory on sandbox</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118294#M81077</link>
      <description>&lt;P&gt;All sorted now thanks. I could not tell how to change permissions within the Hive shell and did not know how to get to a command line to run the hdfs commands. Looking at the other tutorial I could see that you needed to right click on the files/directories to change permissions (not obvious on a mac!).  So I've now been able to create /user/admin, change permissions and run the load.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 22:17:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Missing-user-admin-directory-on-sandbox/m-p/118294#M81077</guid>
      <dc:creator>adrian_savory</dc:creator>
      <dc:date>2016-02-01T22:17:11Z</dc:date>
    </item>
  </channel>
</rss>

