<?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: How can yarn queue be specified for Titan mapreduce indexing jobs? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-yarn-queue-be-specified-for-Titan-mapreduce-indexing/m-p/182562#M73142</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/12466/pbarna.html" nodeid="12466"&gt;@pbarna&lt;/A&gt;&lt;P&gt;I worked on this as part of Atlas project. I realized that solution is not as simple given the numerous dependencies involved.&lt;/P&gt;&lt;P&gt;Can you please tell me the version of Titan and Hadoop you are using? I attempted a similar exercise for using Titan 0.5.4 and Hadoop 2.6.3.&lt;/P&gt;&lt;P&gt;My problem was to initiate Titan Index Repair job. This facility is built-in to Titan API. It uses MapReduce to initiate the repair. With some help, I realized that adding properties to &lt;I&gt;yarn-site.xml and hbase-site.xml&lt;/I&gt; actually help. When you do update the properties in these files, be sure to use the &lt;EM&gt;&amp;lt;final&amp;gt;true&amp;lt;/final&amp;gt; &lt;/EM&gt;so that your settings override the default and take effect.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;property&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;    &amp;lt;name&amp;gt;mapreduce.local.map.tasks.maximum&amp;lt;/name&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;    &amp;lt;value&amp;gt;10&amp;lt;/value&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;    &amp;lt;final&amp;gt;true&amp;lt;/final&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Due to various reason I ended up writing a groovy script to achieve this. I can get into details if you are interested. My script is &lt;A href="https://github.com/apache/atlas/tree/branch-0.8/tools/atlas-index-repair-kit"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Please feel free to reach out if you think this was useful.&lt;/P&gt;&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/13738/nixonrodrigues.html" nodeid="13738"&gt;@Nixon Rodrigues&lt;/A&gt; for letting me know about this question.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2018 03:03:42 GMT</pubDate>
    <dc:creator>amestry</dc:creator>
    <dc:date>2018-01-08T03:03:42Z</dc:date>
    <item>
      <title>How can yarn queue be specified for Titan mapreduce indexing jobs?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-yarn-queue-be-specified-for-Titan-mapreduce-indexing/m-p/182560#M73140</link>
      <description>&lt;P&gt;whatever I tried, all yarn applications ended up in the default queue&lt;/P&gt;&lt;P&gt;these are the things I tried: &lt;/P&gt;&lt;P&gt;1) setting property in the  titan-hbase-solr.properties (none of the following worked)&lt;/P&gt;&lt;P&gt;
mapred.job.queue.name=myqueue &lt;/P&gt;&lt;P&gt;mapreduce.job.queue.name=myqueue &lt;/P&gt;&lt;P&gt;mapred.mapreduce.job.queue.name=myqueue &lt;/P&gt;&lt;P&gt;2) setting property in the gremlin shell   &lt;/P&gt;&lt;P&gt;gremlin&amp;gt; graph = TitanFactory.open("/usr/iop/4.2.5.0-0000/titan/conf/titan-hbase-solr.properties") &lt;/P&gt;&lt;P&gt;gremlin&amp;gt; mgmt = graph.openManagement() &lt;/P&gt;&lt;P&gt;gremlin&amp;gt; desc = mgmt.getPropertyKey("desc2") &lt;/P&gt;&lt;P&gt;gremlin&amp;gt; mr = new MapReduceIndexManagement(graph) &lt;/P&gt;&lt;P&gt;gremlin&amp;gt; mgmt.set('gremlin.hadoop.mapred.job.queue.name', 'myqueue') &lt;/P&gt;&lt;P&gt;Unknown configuration element in namespace [root.gremlin]: &lt;/P&gt;&lt;P&gt;hadoop
gremlin&amp;gt; mgmt.set('hadoop.mapred.job.queue.name', 'myqueue') &lt;/P&gt;&lt;P&gt;Unknown configuration element in namespace [root]: hadoop
Display stack trace? [yN] n &lt;/P&gt;&lt;P&gt;gremlin&amp;gt; mgmt.set('titan.hadoop.mapred.job.queue.name', 'myqueue') &lt;/P&gt;&lt;P&gt;Unknown configuration element in namespace [root]: titan
Display stack trace? [yN] n &lt;/P&gt;&lt;P&gt;gremlin&amp;gt; mgmt.set('mapred.job.queue.name', 'myqueue') &lt;/P&gt;&lt;P&gt;Unknown configuration element in namespace [root]: mapred
Display stack trace? [yN] n
gremlin&amp;gt; &lt;/P&gt;&lt;P&gt;
gremlin&amp;gt; mgmt.set('mapreduce.mapred.job.queue.name', 'myqueue') &lt;/P&gt;&lt;P&gt;Unknown configuration element in namespace [root]: mapreduce
Display stack trace? [yN] n &lt;/P&gt;&lt;P&gt;gremlin&amp;gt; mgmt.set('gremlin.mapred.job.queue.name', 'myqueue') &lt;/P&gt;&lt;P&gt;Unknown configuration element in namespace [root.gremlin]: mapred
Display stack trace? [yN] n &lt;/P&gt;&lt;P&gt;gremlin&amp;gt; mgmt.set('gremlin.hadoop.mapred.job.queue.name', 'myqueue') &lt;/P&gt;&lt;P&gt;Unknown configuration element in namespace [root.gremlin]: hadoop
Display stack trace? [yN] n
gremlin&amp;gt; &lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 18:33:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-yarn-queue-be-specified-for-Titan-mapreduce-indexing/m-p/182560#M73140</guid>
      <dc:creator>bpgergo</dc:creator>
      <dc:date>2018-01-05T18:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can yarn queue be specified for Titan mapreduce indexing jobs?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-yarn-queue-be-specified-for-Titan-mapreduce-indexing/m-p/182561#M73141</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12466/pbarna.html" nodeid="12466"&gt;@pbarna&lt;/A&gt;, you can set mapreduce.job.queuename=myqueue for mapred job.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/49658/how-to-specify-queue-name-submitting-mapreduce-job.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/49658/how-to-specify-queue-name-submitting-mapreduce-job.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2018 03:41:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-yarn-queue-be-specified-for-Titan-mapreduce-indexing/m-p/182561#M73141</guid>
      <dc:creator>yvora</dc:creator>
      <dc:date>2018-01-06T03:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can yarn queue be specified for Titan mapreduce indexing jobs?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-yarn-queue-be-specified-for-Titan-mapreduce-indexing/m-p/182562#M73142</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12466/pbarna.html" nodeid="12466"&gt;@pbarna&lt;/A&gt;&lt;P&gt;I worked on this as part of Atlas project. I realized that solution is not as simple given the numerous dependencies involved.&lt;/P&gt;&lt;P&gt;Can you please tell me the version of Titan and Hadoop you are using? I attempted a similar exercise for using Titan 0.5.4 and Hadoop 2.6.3.&lt;/P&gt;&lt;P&gt;My problem was to initiate Titan Index Repair job. This facility is built-in to Titan API. It uses MapReduce to initiate the repair. With some help, I realized that adding properties to &lt;I&gt;yarn-site.xml and hbase-site.xml&lt;/I&gt; actually help. When you do update the properties in these files, be sure to use the &lt;EM&gt;&amp;lt;final&amp;gt;true&amp;lt;/final&amp;gt; &lt;/EM&gt;so that your settings override the default and take effect.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;property&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;    &amp;lt;name&amp;gt;mapreduce.local.map.tasks.maximum&amp;lt;/name&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;    &amp;lt;value&amp;gt;10&amp;lt;/value&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;    &amp;lt;final&amp;gt;true&amp;lt;/final&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Due to various reason I ended up writing a groovy script to achieve this. I can get into details if you are interested. My script is &lt;A href="https://github.com/apache/atlas/tree/branch-0.8/tools/atlas-index-repair-kit"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Please feel free to reach out if you think this was useful.&lt;/P&gt;&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/13738/nixonrodrigues.html" nodeid="13738"&gt;@Nixon Rodrigues&lt;/A&gt; for letting me know about this question.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 03:03:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-yarn-queue-be-specified-for-Titan-mapreduce-indexing/m-p/182562#M73142</guid>
      <dc:creator>amestry</dc:creator>
      <dc:date>2018-01-08T03:03:42Z</dc:date>
    </item>
  </channel>
</rss>

