Sqoop将MySQL表结构同步到hive

sqoop create-hive-table --connect jdbc:mysql://localhost:3306/sqooptest --username root --password 123qwe --table sqoop_job
 --hive-table sqoop_job --fields-terminated-by ,

 

orc格式的

sqoop import --connect jdbc:mysql://localhost:3306/test --username root --password 1234qwer --table test_table --hcatalog-database db_fz
--hcatalog-table test_table --create-hcatalog-table --hcatalog-storage-stanza "stored as orc"

 

相关文章:

  • 2021-10-27
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2022-02-08
  • 2021-08-14
  • 2021-12-24
相关资源
相似解决方案