Apache Sqoop是否支持从HIVE到Cassandra的数据传输。

时间:2017-02-01 09:20:55

标签: hadoop cassandra hive sqoop

这些(Hive / Cassandra)都不是关系型的。 Hive受JDBC支持,我认为与Hive兼容。

1 个答案:

答案 0 :(得分:2)

你是对的Sqoop适用于JDBC。例如,使用Progress JDBC driver,您可以从Sqoop将HDFS导出到Cassandra,如下所示:

Update mytable set xml = replace (xml, "<Book key=\"material8\"  active=\"true\" displayOrder=\"5\" />", "") where id = 9 and type_key="mykey1";


<?xml version="1.0" encoding="UTF-8"?>
<Type key="test1" publicKey="test2" >
    <UIProperties>
        <label locale="en_US">My book</label>
    </UIProperties>
    <Books>
        <Book key="material1"  active="true" displayOrder="0" >
            <UIProperties>
                <label locale="en_US">My Books</label>
            </UIProperties>
        </Book>
        <Book key="material2"  />
        <Book key="material3"  active="true" displayOrder="3" >
            <Pages>
                <Page key="material4" active="true" displayOrder="0" />
                <Page key="material5"  active="true" displayOrder="1" />
            </Pages>
        </Book>
        <Book key="material6"  active="true" displayOrder="4" />
        <Book key="material7"  active="true" displayOrder="2" />
        <Book key="material8" active="true" displayOrder="5" />
        <Book key="material8"  active="true" displayOrder="5" />
    </Books>
    <Attributes>
        <Attribute key="desc" />
        <Attribute key="date1" />
        <Attribute key="date2" />
    </Attributes>
</Type>