【发布时间】:2014-05-30 15:20:34
【问题描述】:
有没有办法在不使用 ETL 工具的情况下将数据从 Hortonworks Hive 导出到 Apache Cassandra?
【问题讨论】:
标签: hive hdfs hortonworks-data-platform cassandra-cli
有没有办法在不使用 ETL 工具的情况下将数据从 Hortonworks Hive 导出到 Apache Cassandra?
【问题讨论】:
标签: hive hdfs hortonworks-data-platform cassandra-cli
您可以在其中创建一个数据库“export”和一个表“myview”。
create database export;
use export;
create table myview as select <put your query here>
然后使用“desc”获取完整目录路径:
describe myview.
从目录路径中,您可以将 cassandra 指向该 hdfs 位置并从 hdfs 导入。
免责声明:此过程仅适用于较小的表,因为您的“myview”未分区。它不适用于应该在其上定义分区的大型分区。
【讨论】: