分享

CDH Lily HBase NRT Indexer Service 中HBase行键映射的问题

karo_lee 发表于 2015-3-5 16:36:24 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 33333
用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的配置问题.

已有(4)人评论

跳转到指定楼层
xuanxufeng 发表于 2015-3-5 17:17:09
楼主研究的很高深啊。
在找找其他配置,看看官方文档是否提供自定义,如果没有,只能自己开发了
回复

使用道具 举报

karo_lee 发表于 2015-3-6 13:11:42
回复

使用道具 举报

hua0704 发表于 2015-3-6 17:26:31
回复

使用道具 举报

geosmart 发表于 2015-9-9 15:35:38
楼主您好,请教下:morphlines .conf的mappings 里面的inputColumn是根据什么定义的?,必须以"data:*"的格式定义吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条