次のコマンドを実行して、mysqlデータベースのすべてのテーブルをインポートしようとしています。Sqoop Imprt-all-tablesコマンドを使用するときにHIVEフィールドのdelimeterを変更する方法
sqoop import-all-tables \
--num-mappers 4 \
--connect "jdbc:mysql://<host>:<port>/SomeDB" \
--username=SomeUser \
--password=SomePassword \
--hive-import \
--hive-overwrite \
--create-hive-table \
--hive-database STAGING_AREA
これは、次の区切り文字
私が言うには、フィールドの区切り文字を変更するにはどうすればよいStorage Desc Params:
field.delim \u0001
line.delim \n
serialization.format \u0001
を持つテーブルを作成しています「|」上記のsqoopコマンドを実行しているとき