Hi Ad 2) Yeah that is a mistake on the example. You should have 2 as prefix on the header name, for the 2nd header, and 3 for the 3rd, and 4 for the 4th and so on.
On Fri, Mar 14, 2014 at 9:51 AM, liugang594 Liu <clevers...@gmail.com> wrote: > Hi All: > > I'm tring camel-hbase component, and I did follow the guide page > http://camel.apache.org/hbase.html . I have some questions here: > > 1. Header Mapping Options > for example, the 'rowId' options, the name should be 'CamelHBaseRowId' > ,right (same for others)? > > 2. Examples > it says we can specify multiple headers to put multiple values at once, the > sample as below: > <route> > <from uri="direct:in"/> > <!-- Set the HBase Row 1st column --> > <setHeader headerName="CamelHBaseRowId"> > <el>${in.body.id}</el> > </setHeader> > <!-- Set the HBase Row 2nd column --> > <setHeader headerName="CamelHBaseRowId"> > <el>${in.body.id}</el> > </setHeader> > <!-- Set the HBase Value for 1st column --> > <setHeader headerName="CamelHBaseValue"> > <el>${in.body.value}</el> > </setHeader> > <!-- Set the HBase Value for 2nd column --> > <setHeader headerName="CamelHBaseValue2"> > <el>${in.body.othervalue}</el> > </setHeader> > <to uri="hbase:mytable?opertaion=CamelHBasePut&family=myfamily& > qualifier=myqualifier&family2=myfamily&qualifier2=myqualifier2"/> > </route> > > I don't understand how we can do that in camel, because the previous value > will be overwrote if same header name comes. right? > > 3. Remove option > I tried camel-hbase on consumer side, all scanned rows will be removed if > we didn't specify option remove=false, however this option doesn't describe > on the page > > 4. Family and Qualifier options > On consumer part, it is said we can also use uri option and header option > (I'm not sure how to use header option in this case). I tried to specify > family and qualifier options, however, the returned value will always be > null. I'm not sure they are forbidden or it's a bug. I created a bug and > add details for it: https://issues.apache.org/jira/browse/CAMEL-7296 > > I appreciate to get some answers about these questions. Thanks. > > -- > Best Regards > GangLiu > Mail: clevers...@gmail.com -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io