从DB2到Datastax的sqoop导入,模式格式不正确
当我尝试使用以下命令从DB2数据库中导入sqoop从DB2到Datastax的sqoop导入,模式格式不正确,db2,sqoop,datastax-enterprise,Db2,Sqoop,Datastax Enterprise,当我尝试使用以下命令从DB2数据库中导入sqoop时: /dse sqoop import--connect jdbc:db2://172.29.252.40:4922/DSNN--username tst-p--table tschema.“dsn_filter_table”-cassandra keyspace SqoopTest--cassandra column family act2--cassandra row key PREDNO--cassandra thrift host 10
时:
/dse sqoop import--connect jdbc:db2://172.29.252.40:4922/DSNN--username tst-p--table tschema.“dsn_filter_table”-cassandra keyspace SqoopTest--cassandra column family act2--cassandra row key PREDNO--cassandra thrift host 10.247.31.42--cassandra create schema--splitby PREDNO
[DB2 Select查询:使用ur从SchemaName.TableName中选择*
为什么我没有像在DB2中那样获得正确格式的模式
面临的问题:
为什么DB2表的列名会进入Cassandra的行
请求您的帮助以解决此问题。我不熟悉Sqoop的Datastax版本,但通常不能使用参数--table来指定架构名称。您可以使用currentSchema属性在JDBCURL中指定模式。比如说
sqoop import --connect jdbc:db2://host/db:currentSchema=tstschema