Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在不使用 ETL 工具的情况下将数据从 Hortonworks Hive 导出到 Apache Cassandra?
您可以在其中创建一个数据库“export”和一个表“myview”。
create database export; use export; create table myview as select <put your query here>
然后使用“desc”获取完整的目录路径:
describe myview.
从目录路径中,您可以将 cassandra 指向该 hdfs 位置并从 hdfs 导入它。
免责声明:此过程仅适用于较小的表,因为您的“myview”未分区。它不适用于应该在其上定义分区的大型分区。
帖子之间?