Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

sqoop to export data from hdfs into mysql

$
0
0

I am using sandbox 2.3_1. I have a hive table in sandbox, I am trying to export the data into a mysql table also in the sandbox. I am using this under hadoop shell:
sqoop export –connect jdbc:mysql://localhost/flightinfo –table weather –export-dir /apps/hive/warehouse/sqoop_tmp

and got error: Access denied for user ”@’localhost’ (using password: no) (sqlManager:43).

The mysql database is flightinfo, table is weather, /apps/hive/warehouse/sqoop_tmp is the data in hadoop. The mysql database should be preinstalled in the sandbox.I can type mysql in hadoop shell to enter mysql without entering any username or password.

I am new to hadoop so not quite sure what’s the problem.


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>