<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: hbase/solar indexing feature Lily HBase NRT Indexer Service in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21350#M3539</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried equals earlier, but I am afraid it's not working form me. Here is snippet for morphline:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if {&lt;BR /&gt;conditions : [&lt;BR /&gt;{ equals { p : [] } }&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;then : [&lt;BR /&gt;&lt;BR /&gt;# handling headers&lt;/P&gt;&lt;P&gt;{logInfo { format : "processing headers..." } }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;else : [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;# handling payload&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{logInfo { format : "processing payload..." } }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So with the follwing entry into hbase:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;put 'payload', 'row1', 'p', '&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;employees&amp;gt;&amp;lt;employee&amp;gt;&amp;lt;name&amp;gt;ayache&amp;lt;/name&amp;gt;&amp;lt;ag&lt;/SPAN&gt;&lt;SPAN&gt;e&amp;gt;29&amp;lt;/age&amp;gt;&amp;lt;/employee&amp;gt;&amp;lt;/employees&amp;gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;still going into the 'handling headers' close. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My&amp;nbsp;use case mandate that the field 'p' is qualified with qualifier 'in': So not usre how to reference qualifier in the 'equals' command. I've tried this&amp;nbsp;equals { "p:in" : [] } . This is the next step really, It's not matching withouth the qualifier anyway, any idea what I have missed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ayache&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Nov 2014 14:20:27 GMT</pubDate>
    <dc:creator>akhettar</dc:creator>
    <dc:date>2014-11-10T14:20:27Z</dc:date>
    <item>
      <title>hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21160#M3524</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am &amp;nbsp;a complete newbie to Cloudera search. I went through the example described here:&amp;nbsp;&lt;A href="http://www.cloudera.com/content/cloudera/en/documentation/cloudera-search/v1-latest/Cloudera-Search-User-Guide/csug_use_hbase_indexer_service.html" target="_self"&gt;hbase indexer&lt;/A&gt;&amp;nbsp;all seems to be good, the data field is being indexed successfully in apache solar. However when I add simple step like adding timestap field - see below, the indexer stops working, any idea as to why this happening?&amp;nbsp;ndication to where I can find the indexers logs will be very much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My ultimate goad is to store an xml in the 'data' filed and apply Xpath to index only the element I want its value to be indexed. Can anyone me give me a clue how to achieve this? are there any examples which uses either xpath or xquery?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;akhettar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;morphlines : [&lt;BR /&gt;{&lt;BR /&gt;id : morphline1&lt;BR /&gt;importCommands : ["org.kitesdk.morphline.**", "com.ngdata.**"]&lt;/P&gt;&lt;P&gt;commands : [&lt;BR /&gt;{&lt;BR /&gt;extractHBaseCells {&lt;BR /&gt;mappings : [&lt;BR /&gt;{&lt;BR /&gt;inputColumn : "data&amp;amp;colon;*"&lt;BR /&gt;outputField : "data"&lt;BR /&gt;type : string&lt;BR /&gt;source : value&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#{&lt;BR /&gt;# inputColumn : "data&amp;amp;colon;item"&lt;BR /&gt;# outputField : "_attachment_body"&lt;BR /&gt;# type : "byte[]"&lt;BR /&gt;# source : value&lt;BR /&gt;#}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;{ addCurrentTime { field : ts } }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#for avro use with type : "byte[]" in extractHBaseCells mapping above&lt;BR /&gt;#{ readAvroContainer {} }&lt;BR /&gt;#{&lt;BR /&gt;# extractAvroPaths {&lt;BR /&gt;# paths : {&lt;BR /&gt;# data &amp;amp;colon; /user_name&lt;BR /&gt;# }&lt;BR /&gt;# }&lt;BR /&gt;#}&lt;/P&gt;&lt;P&gt;{ logTrace { format : "output record: {}", args : ["@{}"] } }&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:11:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21160#M3524</guid>
      <dc:creator>akhettar</dc:creator>
      <dc:date>2022-09-16T09:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21162#M3525</link>
      <description>The solr schema.xml config file needs to conform to the documents that you are trying to insert. Try adjusting schema.xml accordingly and tell solr about it via the solrctl CLI.&lt;BR /&gt;&lt;BR /&gt;Also see &lt;A href="http://kitesdk.org/docs/current/kite-morphlines/morphlinesReferenceGuide.html#sanitizeUnknownSolrFields" target="_blank"&gt;http://kitesdk.org/docs/current/kite-morphlines/morphlinesReferenceGuide.html#sanitizeUnknownSolrFields&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;XPath and XQuery docs are here: &lt;A href="http://kitesdk.org/docs/current/kite-morphlines/morphlinesReferenceGuide.html#xquery" target="_blank"&gt;http://kitesdk.org/docs/current/kite-morphlines/morphlinesReferenceGuide.html#xquery&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The log files of the Solr server and MapReduce tasks, etc can be displayed in the Cloudera Manager GUI.&lt;BR /&gt;&lt;BR /&gt;Wolfgang.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Nov 2014 08:49:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21162#M3525</guid>
      <dc:creator>whosch</dc:creator>
      <dc:date>2014-11-04T08:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21172#M3526</link>
      <description>&lt;P&gt;Many thanks&amp;nbsp;&lt;SPAN&gt;Wolfgang for your input. As for the logs, I am not running Cloudera manager, the VM requires at least 8 GB or RAM and it's freezing my machine. I was hoping to be pointed to log file in the file system so I could tail?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ayache&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2014 12:59:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21172#M3526</guid>
      <dc:creator>akhettar</dc:creator>
      <dc:date>2014-11-04T12:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21186#M3527</link>
      <description>Try /var/log/solr&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Nov 2014 20:33:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21186#M3527</guid>
      <dc:creator>whosch</dc:creator>
      <dc:date>2014-11-04T20:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21197#M3528</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the hint. &amp;nbsp;/var/log/solr/solr.out is for solar server, &amp;nbsp;but was interesed in hbase-indexer server. Here is the link for the benefit of&amp;nbsp;all:&amp;nbsp;tail -f /var/log/hbase-solr/hbase-solr-hbase.out&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2014 22:02:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21197#M3528</guid>
      <dc:creator>akhettar</dc:creator>
      <dc:date>2014-11-04T22:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21215#M3529</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the above morphline conf working...the 'ts' varialbe wasn't declared in the schema.xml. I have experimented with some other commands, however the xquery command isn't working properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the morophline conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;morphlines : [&lt;BR /&gt;{&lt;BR /&gt;id : morphline1&lt;BR /&gt;importCommands : ["org.kitesdk.morphline.**", "com.ngdata.**"]&lt;/P&gt;&lt;P&gt;commands : [&lt;BR /&gt;{&lt;BR /&gt;extractHBaseCells {&lt;BR /&gt;mappings : [&lt;BR /&gt;{&lt;BR /&gt;inputColumn : "data&amp;amp;colon;*"&lt;BR /&gt;outputField : "data"&lt;BR /&gt;type : string&lt;BR /&gt;source : value&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#{&lt;BR /&gt;# inputColumn : "data&amp;amp;colon;item"&lt;BR /&gt;# outputField : "_attachment_body"&lt;BR /&gt;# type : "byte[]"&lt;BR /&gt;# source : value&lt;BR /&gt;#}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;{ xquery {&lt;BR /&gt;fragments : [&lt;BR /&gt;{&lt;BR /&gt;fragmentPath : "/"&lt;BR /&gt;externalVariables : {&lt;BR /&gt;myVariable : "hello world"&lt;BR /&gt;}&lt;BR /&gt;queryString : """&lt;BR /&gt;declare variable $myVariable as xs:string external;&lt;BR /&gt;(: Example xquery &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;let $name := /employees/employee/name/text()&lt;BR /&gt;return&lt;BR /&gt;&amp;lt;ts&amp;gt; { $name } &amp;lt;/ts&amp;gt;&lt;BR /&gt;"""&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#for avro use with type : "byte[]" in extractHBaseCells mapping above&lt;BR /&gt;#{ readAvroContainer {} }&lt;BR /&gt;#{&lt;BR /&gt;# extractAvroPaths {&lt;BR /&gt;# paths : {&lt;BR /&gt;# data &amp;amp;colon; /user_name&lt;BR /&gt;# }&lt;BR /&gt;# }&lt;BR /&gt;#}&lt;/P&gt;&lt;P&gt;{ logTrace { format : "output record: {}", args : ["@{}"] } }&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;morphline-hbase-mapper.xml&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;BR /&gt;&amp;lt;indexer table="record" mapper="com.ngdata.hbaseindexer.morphline.MorphlineResultToSolrMapper"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- The relative or absolute path on the local file system to the morphline configuration file. --&amp;gt;&lt;BR /&gt;&amp;lt;!-- Use relative path "morphlines.conf" for morphlines managed by Cloudera Manager --&amp;gt;&lt;BR /&gt;&amp;lt;param name="morphlineFile" value="/etc/hbase-solr/conf/morphlines.conf"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- The optional morphlineId identifies a morphline if there are multiple morphlines in morphlines.conf --&amp;gt;&lt;BR /&gt;&amp;lt;!-- &amp;lt;param name="morphlineId" value="morphline1"/&amp;gt; --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/indexer&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The input to hbase is&lt;/STRONG&gt;:&amp;nbsp;put 'record', 'row12', 'data', '&amp;lt;employees&amp;gt;&amp;lt;employee&amp;gt;&amp;lt;name&amp;gt;ayache&amp;lt;/name&amp;gt;&amp;lt;age&amp;gt;29&amp;lt;/age&amp;gt;&amp;lt;/employee&amp;gt;&amp;lt;/employees&amp;gt;'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;All I can see in the log is the following:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;14/11/05 07:29:22 WARN morphline.LocalMorphlineResultToSolrMapper: Morphline /etc/hbase-solr/conf/morphlines.conf@null failed to process record: {data=[&amp;lt;employees&amp;gt;&amp;lt;employee&amp;gt;&amp;lt;name&amp;gt;ayache&amp;lt;/name&amp;gt;&amp;lt;age&amp;gt;29&amp;lt;/age&amp;gt;&amp;lt;/employee&amp;gt;&amp;lt;/employees&amp;gt;]}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea as to why it's failing to index the above input?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ayache&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 09:39:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21215#M3529</guid>
      <dc:creator>akhettar</dc:creator>
      <dc:date>2014-11-05T09:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21233#M3530</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've debugged this further but unfortunately got no where. What version of kite-sdk is the QuickStartVM is running if I may ask?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've moved away from using xquery and started to expirement with xslt instead. Running the example shown in the morpheline reference guide - see below my morphline sample&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;morphlines : [&lt;BR /&gt;{&lt;BR /&gt;id : morphline1&lt;BR /&gt;importCommands : ["org.kitesdk.**", "com.ngdata.**"]&lt;BR /&gt;&lt;BR /&gt;commands : [&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;xslt {&lt;BR /&gt;fragments : [&lt;BR /&gt;{&lt;BR /&gt;fragmentPath : "/"&lt;BR /&gt;parameters : {&lt;BR /&gt;myVariable : "hello world"&lt;BR /&gt;}&lt;BR /&gt;queryString : """&lt;BR /&gt;&amp;lt;!-- Example XSLT identity transformation --&amp;gt;&lt;BR /&gt;&amp;lt;xsl:stylesheet xmlns:xsl="&lt;A target="_blank" href="http://www.w3.org/1999/XSL/Transform&amp;quot;"&gt;http://www.w3.org/1999/XSL/Transform"&lt;/A&gt; version="1.0"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;xsl:template match="@*|node()"&amp;gt;&lt;BR /&gt;&amp;lt;xsl:copy&amp;gt;&lt;BR /&gt;&amp;lt;xsl:apply-templates select="@*|node()"/&amp;gt;&lt;BR /&gt;&amp;lt;/xsl:copy&amp;gt;&lt;BR /&gt;&amp;lt;/xsl:template&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/xsl:stylesheet&amp;gt;&lt;BR /&gt;"""&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;{ logTrace { format : "output record: {}", args : ["@{}"] } }&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If push the following into hbase:&amp;nbsp;put 'record', 'row41', 'data', '&amp;lt;employees&amp;gt;&amp;lt;employee&amp;gt;&amp;lt;name&amp;gt;ayache&amp;lt;/name&amp;gt;&amp;lt;age&amp;gt;29&amp;lt;/age&amp;gt;&amp;lt;/employee&amp;gt;&amp;lt;/employees&amp;gt;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect an index to be created with the same xml ingested into hbase. I can see in the logs that the import is done &amp;nbsp;- see below. But when I search on Solar web console I can't see any entry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me at least to run one of the xquery or xslt examples?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ayache&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 18:00:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21233#M3530</guid>
      <dc:creator>akhettar</dc:creator>
      <dc:date>2014-11-05T18:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21236#M3531</link>
      <description>&lt;P class="p1"&gt;The xquery command expects a byte[] rather than a string as input, and that input must be in the outputField : “_attachment_body” field rather than the "data" field. Try changing the extractHBaseCells command to use type : "byte[]” and outputField : “_attachment_body"&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Also you need to change your xquery command to wrap your XML output into yet another XML element (e.g. “record”).&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;For example, in order to generate a morphline record with a “myFoo" field that contains “foo",&lt;/P&gt;&lt;P class="p1"&gt;as well as a “myBar" field that contains “bar", your xquery command should be formulated such&lt;/P&gt;&lt;P class="p1"&gt;that it outputs an XML fragment like this:&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;record&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;myFoo&amp;gt;foo&amp;lt;/myFoo&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;myBar&amp;gt;bar&amp;lt;/myBar&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;/record&amp;gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Wolfgang.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 18:42:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21236#M3531</guid>
      <dc:creator>whosch</dc:creator>
      <dc:date>2014-11-05T18:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21253#M3532</link>
      <description>&lt;P&gt;Many thanks Wolfgang for the suggestion, they really did the trick. For future references are these mentioned anywere in the reference guide?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2014 11:08:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21253#M3532</guid>
      <dc:creator>akhettar</dc:creator>
      <dc:date>2014-11-06T11:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21254#M3533</link>
      <description>&lt;P&gt;It’s mentioned in the ref guide for the next upcoming kite version per &lt;A target="_blank" href="https://github.com/kite-sdk/kite/blob/master/kite-morphlines/src/site/confluence/morphlinesReferenceGuide.confluence#L2879-L2889"&gt;https://github.com/kite-sdk/kite/blob/master/kite-morphlines/src/site/confluence/morphlinesReferenceGuide.confluence#L2879-L2889&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2014 11:39:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21254#M3533</guid>
      <dc:creator>whosch</dc:creator>
      <dc:date>2014-11-06T11:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21255#M3534</link>
      <description>&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ayache&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2014 12:00:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21255#M3534</guid>
      <dc:creator>akhettar</dc:creator>
      <dc:date>2014-11-06T12:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21335#M3535</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just one last question regarding the above implementation. How do I make the xquery step only get triggered for certain column 'family name'. &amp;nbsp;Here is the scenario&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;put 'record', 'row1', 'data', '&lt;SPAN&gt;&amp;lt;employees&amp;gt;&amp;lt;employee&amp;gt;&amp;lt;name&amp;gt;ayache&amp;lt;/name&amp;gt;&amp;lt;ag&lt;/SPAN&gt;&lt;SPAN&gt;e&amp;gt;29&amp;lt;/age&amp;gt;&amp;lt;/employee&amp;gt;&amp;lt;/employees&amp;gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above input into hbase will be handled by xquery step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;put 'record', 'row2', 'context', 'business' &amp;nbsp;===&amp;gt; for this input I don't want to call the xquery strep, rather the following mapping will suffice (extracting cell value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;inputColumn : "context"&lt;BR /&gt;outputField : "context"&lt;BR /&gt;type : string&lt;BR /&gt;source : value&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought about declaring two morphlines, one handling fields that require xquery step and others just one to oine mapping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;morphlines : [&lt;BR /&gt;{&lt;BR /&gt;id : morphline1&lt;BR /&gt;importCommands : ["org.kitesdk.**", "com.ngdata.**"]&lt;BR /&gt;&lt;BR /&gt;commands : [&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;extractHBaseCells {&lt;BR /&gt;mappings : [&lt;BR /&gt;{&lt;BR /&gt;inputColumn : "data"&lt;BR /&gt;outputField : "_attachment_body"&lt;BR /&gt;type : "byte[]"&lt;BR /&gt;source : value&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;{&lt;BR /&gt;xquery {&lt;BR /&gt;fragments : [&lt;BR /&gt;{&lt;BR /&gt;fragmentPath : "/"&lt;BR /&gt;&lt;BR /&gt;queryString : """&lt;BR /&gt;&lt;BR /&gt;(: All namespace declarations go here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;declare namespace inps = "&lt;A target="_blank" href="http://inps.co.uk/&amp;quot;;"&gt;http://inps.co.uk/";&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(: Extracting all the fieleds that need indexing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;let $name := /employees/employee/name/text()&lt;/P&gt;&lt;P&gt;(: Returning the list of the fields that needs to be indexed. These fields are defined in solar schema.xml file. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;return&lt;BR /&gt;&amp;lt;fieldsToIndex&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;{$name}&amp;lt;/name&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/fieldsToIndex&amp;gt;&lt;BR /&gt;"""&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;{ logTrace { format : "output record: {}", args : ["@{}"] } }&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;{&lt;BR /&gt;id : morphline2&lt;BR /&gt;importCommands : ["org.kitesdk.**", "com.ngdata.**"]&lt;BR /&gt;&lt;BR /&gt;commands : [&lt;BR /&gt;&lt;BR /&gt;]{&lt;BR /&gt;extractHBaseCells {&lt;BR /&gt;mappings : [&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;inputColumn : "context"&lt;BR /&gt;outputField : "context"&lt;BR /&gt;type : string&lt;BR /&gt;source : value&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;{ logTrace { format : "output record: {}", args : ["@{}"] } }&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like the second morphline is ignored. First, is this a sensible solution? If so, how do I make the second morphline known.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ayache&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Nov 2014 09:51:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21335#M3535</guid>
      <dc:creator>akhettar</dc:creator>
      <dc:date>2014-11-09T09:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21336#M3536</link>
      <description>&lt;P class="p1"&gt;You can express it all&amp;nbsp;in a single morphline. Consider using if-then-else command or the tryRules command or similar in order to check which case applies and execute whatever corresponding logic is appropriate for that case. You can have multiple extractHBaseCells commands in a single morphline, e.g. one in each branch of the tryRules command.&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Wolfgang.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Nov 2014 20:35:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21336#M3536</guid>
      <dc:creator>whosch</dc:creator>
      <dc:date>2014-11-09T20:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21344#M3537</link>
      <description>&lt;P&gt;Thanks again&amp;nbsp;&lt;SPAN&gt;Wolfgang for your prompet respon, this is very helpful. I've looked at teh if/els and tryRules. Both use the 'contains' command for conditions. The contain however only matches the value of the field, my use case is about asserting a presence of the fied regardless of the value. So if the filed &amp;nbsp;is 'context' I want to apply xquery step if not, just one to one mapping from hbase cell. Is there a command to check for the presence of a field?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 11:23:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21344#M3537</guid>
      <dc:creator>akhettar</dc:creator>
      <dc:date>2014-11-10T11:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21345#M3538</link>
      <description>&lt;P&gt;Try&amp;nbsp;equals { id : [] } for example as shown here:&amp;nbsp;&lt;A target="_blank" href="http://kitesdk.org/docs/current/kite-morphlines/morphlinesReferenceGuide.html#if"&gt;http://kitesdk.org/docs/current/kite-morphlines/morphlinesReferenceGuide.html#if&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a morphline record&amp;nbsp;there is no difference between a field with zero values and a field that doesn't exist.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 11:32:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21345#M3538</guid>
      <dc:creator>whosch</dc:creator>
      <dc:date>2014-11-10T11:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21350#M3539</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried equals earlier, but I am afraid it's not working form me. Here is snippet for morphline:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if {&lt;BR /&gt;conditions : [&lt;BR /&gt;{ equals { p : [] } }&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;then : [&lt;BR /&gt;&lt;BR /&gt;# handling headers&lt;/P&gt;&lt;P&gt;{logInfo { format : "processing headers..." } }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;else : [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;# handling payload&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{logInfo { format : "processing payload..." } }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So with the follwing entry into hbase:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;put 'payload', 'row1', 'p', '&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;employees&amp;gt;&amp;lt;employee&amp;gt;&amp;lt;name&amp;gt;ayache&amp;lt;/name&amp;gt;&amp;lt;ag&lt;/SPAN&gt;&lt;SPAN&gt;e&amp;gt;29&amp;lt;/age&amp;gt;&amp;lt;/employee&amp;gt;&amp;lt;/employees&amp;gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;still going into the 'handling headers' close. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My&amp;nbsp;use case mandate that the field 'p' is qualified with qualifier 'in': So not usre how to reference qualifier in the 'equals' command. I've tried this&amp;nbsp;equals { "p:in" : [] } . This is the next step really, It's not matching withouth the qualifier anyway, any idea what I have missed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ayache&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 14:20:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21350#M3539</guid>
      <dc:creator>akhettar</dc:creator>
      <dc:date>2014-11-10T14:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21352#M3540</link>
      <description>&lt;P&gt;The "if" command and "equals" command and indeed all morphline commands know nothing about hbase colunmns or hbase qualifiers, except for the extractHBaseCells command. Use&amp;nbsp;&lt;SPAN&gt;extractHBaseCells to extract whatever hbase columns you want into whatever morphline record fields you want, then subsequently use "if", "equals" or similar to act on the morphline record fields (not on hbase columns or qualifiers direcly).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 15:10:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21352#M3540</guid>
      <dc:creator>whosch</dc:creator>
      <dc:date>2014-11-10T15:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: hbase/solar indexing feature Lily HBase NRT Indexer Service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21357#M3541</link>
      <description>&lt;P&gt;Got you, all working perfectly now. Thank you so much for your help, I now understand more about how morphline / hbase-indexer work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 15:48:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-solar-indexing-feature-Lily-HBase-NRT-Indexer-Service/m-p/21357#M3541</guid>
      <dc:creator>akhettar</dc:creator>
      <dc:date>2014-11-10T15:48:41Z</dc:date>
    </item>
  </channel>
</rss>

