mercredi 8 février 2017

sqoop import as parquet file to target dir, but can't find the file

Vote count: 0

I have been using sqoop to import data from mysql to hive, the command I used are below:

sqoop import --connect jdbc:mysql://localhost:3306/datasync \
    --username root --password 654321 \
    --query 'SELECT id,name FROM test WHERE $CONDITIONS' --split-by id \
    --hive-import --hive-database default --hive-table a \
    --target-dir /tmp/yfr --as-parquetfile

The Hive table is created and the data is inserted, however I can not find the parquet file.

Does anyone know?

Best regards,

Feiran

asked 18 secs ago

Let's block ads! (Why?)



sqoop import as parquet file to target dir, but can't find the file

Aucun commentaire:

Enregistrer un commentaire