<?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 Permission Denied using Sqoop from MySQL on sandbox in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-using-Sqoop-from-MySQL-on-sandbox/m-p/102661#M15125</link>
    <description>&lt;P&gt;I am using Hortonworks Sandbox (a clean setup), and created a simple table in mysql which I want to sqoop into hdfs. &lt;/P&gt;&lt;P&gt;I'm used the MySql that was already installed on the sandbox, by running 'mysql' in the shell.&lt;/P&gt;&lt;P&gt;My first attempt at sqoop was: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;     sqoop import --connect jdbc:mysql://localhost/test  --table mytable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This gave "&lt;EM&gt;..&lt;/EM&gt;&lt;EM&gt;access denied to localhost..&lt;/EM&gt;" error, so based on an answer another post, and finding the MySQL port using "&lt;EM&gt;show variables like 'port'"&lt;/EM&gt; within MySQL, I then tried:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;     sqoop import --connect jdbc:mysql://sandbox.hortonworks.com:3306/test --username root  --table mytable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;This gave errors about ".. streaming result sets are open...", which was solved by another post by adding the 'driver' argument as follows:&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;sqoop import --connect jdbc:mysql://sandbox.hortonworks.com:3306/test --username root  --table mytable --driver com.mysql.jdbc.Driver&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It now gets a bit further, but now fails with a RemoteException:  ...&lt;STRONG&gt;Permission denied: user=root, access=WRITE, inode="user/root/.staging":hdfs:hdfs:drwxr-xr-x&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;That's as far as I've got.  Am I doing something wrong, or do I need to set up some access permissions somewhere?  I would've expected that many people have been sqooping from MySql without having to change the set up, so is my sqoop command incorrect?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:57:32 GMT</pubDate>
    <dc:creator>dandreae</dc:creator>
    <dc:date>2022-09-16T09:57:32Z</dc:date>
    <item>
      <title>Permission Denied using Sqoop from MySQL on sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-using-Sqoop-from-MySQL-on-sandbox/m-p/102661#M15125</link>
      <description>&lt;P&gt;I am using Hortonworks Sandbox (a clean setup), and created a simple table in mysql which I want to sqoop into hdfs. &lt;/P&gt;&lt;P&gt;I'm used the MySql that was already installed on the sandbox, by running 'mysql' in the shell.&lt;/P&gt;&lt;P&gt;My first attempt at sqoop was: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;     sqoop import --connect jdbc:mysql://localhost/test  --table mytable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This gave "&lt;EM&gt;..&lt;/EM&gt;&lt;EM&gt;access denied to localhost..&lt;/EM&gt;" error, so based on an answer another post, and finding the MySQL port using "&lt;EM&gt;show variables like 'port'"&lt;/EM&gt; within MySQL, I then tried:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;     sqoop import --connect jdbc:mysql://sandbox.hortonworks.com:3306/test --username root  --table mytable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;This gave errors about ".. streaming result sets are open...", which was solved by another post by adding the 'driver' argument as follows:&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;sqoop import --connect jdbc:mysql://sandbox.hortonworks.com:3306/test --username root  --table mytable --driver com.mysql.jdbc.Driver&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It now gets a bit further, but now fails with a RemoteException:  ...&lt;STRONG&gt;Permission denied: user=root, access=WRITE, inode="user/root/.staging":hdfs:hdfs:drwxr-xr-x&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;That's as far as I've got.  Am I doing something wrong, or do I need to set up some access permissions somewhere?  I would've expected that many people have been sqooping from MySql without having to change the set up, so is my sqoop command incorrect?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:57:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-using-Sqoop-from-MySQL-on-sandbox/m-p/102661#M15125</guid>
      <dc:creator>dandreae</dc:creator>
      <dc:date>2022-09-16T09:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied using Sqoop from MySQL on sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-using-Sqoop-from-MySQL-on-sandbox/m-p/102662#M15126</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1600/dandreae.html" nodeid="1600"&gt;@David Andreae&lt;/A&gt;&lt;P&gt;Its solely permission issues. &lt;/P&gt;&lt;P&gt;1) Setup mysql permission for root user &lt;/P&gt;&lt;P&gt;2) hdfs dfs -chown -R root:hadoop /user/root&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 05:03:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-using-Sqoop-from-MySQL-on-sandbox/m-p/102662#M15126</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-01-15T05:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied using Sqoop from MySQL on sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-using-Sqoop-from-MySQL-on-sandbox/m-p/102663#M15127</link>
      <description>&lt;P&gt;Thanks Neeraj,&lt;/P&gt;&lt;P&gt;But it seems there is no 'root' directory under '/user' in my HDFS anyway. So running the 'chown' command you gave above it says "No such file or directory".&lt;/P&gt;&lt;P&gt;When I try it on just the '/user' directory (ie. .. -chown .. /user) it says "Permission denied: user=root is not the owner of inode=user&lt;/P&gt;&lt;P&gt;So I tried changing the sqoop target-dir to a folder under /tmp, but it still complains about denied access to '/user/root'. ??&lt;/P&gt;&lt;P&gt;I guess I'm not understanding how the hadoop hdfs folders, owners, permissions etc fit together, and cannot find a clear summary of it anywhere.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 19:06:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-using-Sqoop-from-MySQL-on-sandbox/m-p/102663#M15127</guid>
      <dc:creator>dandreae</dc:creator>
      <dc:date>2016-01-15T19:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied using Sqoop from MySQL on sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-using-Sqoop-from-MySQL-on-sandbox/m-p/102664#M15128</link>
      <description>&lt;PRE&gt;sudo su - hdfs
hdfs dfs -mkdir /user/root
hdfs dfs -chown -R root:hdfs /user/root
exit&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Jan 2016 00:19:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-using-Sqoop-from-MySQL-on-sandbox/m-p/102664#M15128</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2016-01-16T00:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied using Sqoop from MySQL on sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-using-Sqoop-from-MySQL-on-sandbox/m-p/102665#M15129</link>
      <description>&lt;P&gt;Thanks Ancil, that works, although I actually did it slightly differently based on another post, using '..-R root:root..' rather than ..-R root:hdfs..'.  I guess that means I've changed the group to 'root' when I could've left it as 'hdfs'.  Didn't seem to matter, so far.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2016 00:24:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-using-Sqoop-from-MySQL-on-sandbox/m-p/102665#M15129</guid>
      <dc:creator>dandreae</dc:creator>
      <dc:date>2016-01-16T00:24:52Z</dc:date>
    </item>
  </channel>
</rss>

