<?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: Data Ingestion from mysql to HDFS - simple import in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Data-Ingestion-from-mysql-to-HDFS-simple-import/m-p/153821#M116277</link>
    <description>&lt;P&gt;run hostname -f from the command line on the sandbox vm, and you should see the following:&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# hostname -f 
sandbox.hortonworks.com
&lt;/PRE&gt;&lt;P&gt;So, assuming you are running sqoop from the same sandbox vm, this fqdn should resolve properly. You can cat the contents of /etc/hosts/ to verify:&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# cat /etc/hosts
# File is generated from /usr/lib/hue/tools/start_scripts/gen_hosts.sh
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 	localhost.localdomain localhost
192.168.59.103 	sandbox.hortonworks.com sandbox ambari.hortonworks.com&lt;/PRE&gt;&lt;P&gt;If you are running the sqoop command from another host, then you need to make sure the second entry in the sandbox /etc/hosts file is in the /etc/hosts file on that host as well.&lt;/P&gt;&lt;P&gt;Before running the sqoop command, you can test that you can connect to mysql using that hostname from the command line:&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# mysql -h sandbox.hortonworks.com -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 71
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql&amp;gt; 

&lt;/PRE&gt;&lt;P&gt;If that command works, then the jdbc connection with the same hostname, username, and password will work.&lt;/P&gt;</description>
    <pubDate>Sun, 03 Apr 2016 21:07:01 GMT</pubDate>
    <dc:creator>tmccuch</dc:creator>
    <dc:date>2016-04-03T21:07:01Z</dc:date>
    <item>
      <title>Data Ingestion from mysql to HDFS - simple import</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Data-Ingestion-from-mysql-to-HDFS-simple-import/m-p/153817#M116273</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using the sandbox to practice Sqoop.
From the SSH shell, I entered to mysql prompt and have created a table customerInfo under the database test.&lt;/P&gt;&lt;P&gt;Now, I have from the command prompt I typed the following command:
sqoop import \ 
--connect jdbc:mysql://localhost/test \

--username root \

--password xxxx \

--table customerInfo

--m 1&lt;/P&gt;&lt;P&gt;and got the error : access denied for user 'root'@'localhost'.

1) Could you reply which password should I use?
I tried with hadoop. I am using the mysql that comes along with the sandbox.&lt;/P&gt;&lt;P&gt;2) Where can I see the port configuration as mentioned in:
&lt;A href="https://alexeikh.wordpress.com/2012/05/03/using-sqoop-for-moving-data-between-hadoop-and-sql-server/" target="_blank"&gt;https://alexeikh.wordpress.com/2012/05/03/using-sqoop-for-moving-data-between-hadoop-and-sql-server/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2016 13:12:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Data-Ingestion-from-mysql-to-HDFS-simple-import/m-p/153817#M116273</guid>
      <dc:creator>Eukrev</dc:creator>
      <dc:date>2016-04-03T13:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data Ingestion from mysql to HDFS - simple import</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Data-Ingestion-from-mysql-to-HDFS-simple-import/m-p/153818#M116274</link>
      <description>&lt;P&gt;Sqoop-env file looks like below:(Should this be changed as per &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_installing_manually_book/content/set_up_sqoop_configuration.html)" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_installing_manually_book/content/set_up_sqoop_configuration.html)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;export HADOOP_HOME=${HADOOP_HOME:-{{hadoop_home}}}

export HBASE_HOME=${HBASE_HOME:-{{hbase_home}}} 
export HIVE_HOME=${HIVE_HOME:-{{hive_home}}}

export ZOOCFGDIR=${ZOOCFGDIR:-/etc/zookeeper/conf} 
export SQOOP_USER_CLASSPATH="`ls ${HIVE_HOME}/lib/libthrift-*.jar 2&amp;gt; /dev/null`:${SQOOP_USER_CLASSPATH}"

export SQOOP_CONF_DIR="/usr/hdp/current/sqoop-server/conf" ----&amp;gt; I added this line&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2016 20:12:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Data-Ingestion-from-mysql-to-HDFS-simple-import/m-p/153818#M116274</guid>
      <dc:creator>Eukrev</dc:creator>
      <dc:date>2016-04-03T20:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data Ingestion from mysql to HDFS - simple import</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Data-Ingestion-from-mysql-to-HDFS-simple-import/m-p/153819#M116275</link>
      <description>&lt;P style="margin-left: 20px;"&gt;Finally the below step has helped:(taken from the previous questions)&lt;/P&gt;&lt;PRE&gt;hdfs dfs -chown -R root:hdfs /user/root &lt;/PRE&gt;&lt;PRE&gt;sqoop import --connect jdbc:mysql://sandbox.hortonworks.com:3306/test --username root --table customerInfo --driver com.mysql.jdbc.Driver --m 1&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;It is working fine. But, where to find the hostname "sandbox.hortonworks.com:3306" that should be used.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2016 20:35:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Data-Ingestion-from-mysql-to-HDFS-simple-import/m-p/153819#M116275</guid>
      <dc:creator>Eukrev</dc:creator>
      <dc:date>2016-04-03T20:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Data Ingestion from mysql to HDFS - simple import</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Data-Ingestion-from-mysql-to-HDFS-simple-import/m-p/153820#M116276</link>
      <description>&lt;P&gt;MySQL on the sandbox has no password for the root login by default. To set up a root password for the first time, use the mysqladmin command at the shell prompt as follows:&lt;/P&gt;&lt;PRE&gt;$ mysqladmin -u root password newpass&lt;/PRE&gt;</description>
      <pubDate>Sun, 03 Apr 2016 20:52:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Data-Ingestion-from-mysql-to-HDFS-simple-import/m-p/153820#M116276</guid>
      <dc:creator>tmccuch</dc:creator>
      <dc:date>2016-04-03T20:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Data Ingestion from mysql to HDFS - simple import</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Data-Ingestion-from-mysql-to-HDFS-simple-import/m-p/153821#M116277</link>
      <description>&lt;P&gt;run hostname -f from the command line on the sandbox vm, and you should see the following:&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# hostname -f 
sandbox.hortonworks.com
&lt;/PRE&gt;&lt;P&gt;So, assuming you are running sqoop from the same sandbox vm, this fqdn should resolve properly. You can cat the contents of /etc/hosts/ to verify:&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# cat /etc/hosts
# File is generated from /usr/lib/hue/tools/start_scripts/gen_hosts.sh
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 	localhost.localdomain localhost
192.168.59.103 	sandbox.hortonworks.com sandbox ambari.hortonworks.com&lt;/PRE&gt;&lt;P&gt;If you are running the sqoop command from another host, then you need to make sure the second entry in the sandbox /etc/hosts file is in the /etc/hosts file on that host as well.&lt;/P&gt;&lt;P&gt;Before running the sqoop command, you can test that you can connect to mysql using that hostname from the command line:&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# mysql -h sandbox.hortonworks.com -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 71
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql&amp;gt; 

&lt;/PRE&gt;&lt;P&gt;If that command works, then the jdbc connection with the same hostname, username, and password will work.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2016 21:07:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Data-Ingestion-from-mysql-to-HDFS-simple-import/m-p/153821#M116277</guid>
      <dc:creator>tmccuch</dc:creator>
      <dc:date>2016-04-03T21:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data Ingestion from mysql to HDFS - simple import</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Data-Ingestion-from-mysql-to-HDFS-simple-import/m-p/153822#M116278</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/454/tmccuch.html" nodeid="454"&gt;@Tom McCuch&lt;/A&gt;  my root is denied access to mysql. what should i do to transfer data from sqoop to hdfs &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/69382-sqoop.png"&gt;sqoop.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 18:43:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Data-Ingestion-from-mysql-to-HDFS-simple-import/m-p/153822#M116278</guid>
      <dc:creator>rp4345</dc:creator>
      <dc:date>2018-04-09T18:43:11Z</dc:date>
    </item>
  </channel>
</rss>

