tool.importTool: Error

hive
sqoop
bigdatalabs
tool.importTool: Error
0.0 0

#1

When I run the following code I get errors on the labs:

sqoop import
–connect “jdbc:mysql://ms.itversity.com:3306/retail_db”
–username retail_user
–password itversity
–table products
–hive-import
–warehouse-dir “/user/secret_path/problem1/products/parquet/”
–as-parquetfile
–fields-terminated-by “:”
–lines-terminated-by “|”
–create-hive-table
–hive-table product_new

I made sure the hive table and hdfs path did not exist prior to running.

What do I need to change/check to get this to work? (what appears to be a single dash in the code above is actually a double dash, and each lines ends with a back slash that doesn’t show up when I post the code)


#2

can you paste the actual error log what you are getting.


#3


#4

typo in connect string.
Its jdbc. please change and try again.