用hbase-solr-indexer 做索引,hbase的rowkey怎么用morphlines的mapping来映射HBase的行键的。cdh的官方文档默认映射为schema.xml中的field name="id",如果这个field名字不想用id怎么搞啊
morphlines : [ { id : morphline1 importCommands : ["org.kitesdk.morphline.**", "com.ngdata.**"] commands : [ { extractHBaseCells { mappings : [ { inputColumn : "data:*" outputField : "data" type : string source : value } #{ # inputColumn : "data:item" # outputField : "_attachment_body" # type : "byte[]" # source : value #} ] } } #for avro use with type : "byte[]" in extractHBaseCells mapping above #{ readAvroContainer {} } #{ # extractAvroPaths { # paths : { # data : /user_name # } # } #} { logTrace { format : "output record: {}", args : ["@{}"] } } ] }]
这里也没有提及rowkey的配置问题.
|
|