<?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: Cleaning Hive temp directory -Permissions problems in CDP Public Cloud in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Cleaning-Hive-temp-directory-Permissions-problems-in-CDP/m-p/345068#M234361</link>
    <description>Andrea,&lt;BR /&gt;&lt;BR /&gt;On the node running HS2, locate the most recent hive.keytab using&lt;BR /&gt;```&lt;BR /&gt;ls -ltr&lt;BR /&gt;/var/run/cloudera-scm-agent/process/*hive_on_tez-HIVESERVER2/hive.keytab |&lt;BR /&gt;tail -1&lt;BR /&gt;```&lt;BR /&gt;Then kinit as `hive/@REALM`&lt;BR /&gt;After that, you should be able to scan directories owned by the Hive user&lt;BR /&gt;```&lt;BR /&gt;hdfs dfs -ls /tmp/hive&lt;BR /&gt;```&lt;BR /&gt;Hope this helps&lt;BR /&gt;-JMP&lt;BR /&gt;</description>
    <pubDate>Mon, 06 Jun 2022 21:51:25 GMT</pubDate>
    <dc:creator>JoseManuel</dc:creator>
    <dc:date>2022-06-06T21:51:25Z</dc:date>
    <item>
      <title>Cleaning Hive temp directory -Permissions problems in CDP Public Cloud</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cleaning-Hive-temp-directory-Permissions-problems-in-CDP/m-p/344925#M234305</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;due to a problem with a script, we have almost saturated the HDFS available space.&lt;/P&gt;&lt;P&gt;I suppose this is caused by temporary Hive files that have not been cleaned up due to the abnormal termination of the script.&lt;/P&gt;&lt;P&gt;I would like to check the /tmp/hive folder on HDFS but my user, that has administrative privileges, cannot access the /tmp/hive folder.&lt;/P&gt;&lt;P&gt;Is there a way to check and clean such folder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KRs,&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 16:41:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cleaning-Hive-temp-directory-Permissions-problems-in-CDP/m-p/344925#M234305</guid>
      <dc:creator>AndreaCavenago</dc:creator>
      <dc:date>2022-06-02T16:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning Hive temp directory -Permissions problems in CDP Public Cloud</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cleaning-Hive-temp-directory-Permissions-problems-in-CDP/m-p/344932#M234306</link>
      <description>&lt;P&gt;Hi Andrea,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a kerberized environment?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best,&lt;/P&gt;&lt;P&gt;-JMP&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 19:00:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cleaning-Hive-temp-directory-Permissions-problems-in-CDP/m-p/344932#M234306</guid>
      <dc:creator>JoseManuel</dc:creator>
      <dc:date>2022-06-02T19:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning Hive temp directory -Permissions problems in CDP Public Cloud</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cleaning-Hive-temp-directory-Permissions-problems-in-CDP/m-p/344934#M234308</link>
      <description>&lt;P&gt;Hi JM, yes it's a kerberized environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KRs,&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 21:51:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cleaning-Hive-temp-directory-Permissions-problems-in-CDP/m-p/344934#M234308</guid>
      <dc:creator>AndreaCavenago</dc:creator>
      <dc:date>2022-06-02T21:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning Hive temp directory -Permissions problems in CDP Public Cloud</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cleaning-Hive-temp-directory-Permissions-problems-in-CDP/m-p/345068#M234361</link>
      <description>Andrea,&lt;BR /&gt;&lt;BR /&gt;On the node running HS2, locate the most recent hive.keytab using&lt;BR /&gt;```&lt;BR /&gt;ls -ltr&lt;BR /&gt;/var/run/cloudera-scm-agent/process/*hive_on_tez-HIVESERVER2/hive.keytab |&lt;BR /&gt;tail -1&lt;BR /&gt;```&lt;BR /&gt;Then kinit as `hive/@REALM`&lt;BR /&gt;After that, you should be able to scan directories owned by the Hive user&lt;BR /&gt;```&lt;BR /&gt;hdfs dfs -ls /tmp/hive&lt;BR /&gt;```&lt;BR /&gt;Hope this helps&lt;BR /&gt;-JMP&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jun 2022 21:51:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cleaning-Hive-temp-directory-Permissions-problems-in-CDP/m-p/345068#M234361</guid>
      <dc:creator>JoseManuel</dc:creator>
      <dc:date>2022-06-06T21:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning Hive temp directory -Permissions problems in CDP Public Cloud</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cleaning-Hive-temp-directory-Permissions-problems-in-CDP/m-p/345154#M234395</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Andrea,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;use hdfs keytab to clear them&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;NAME=hdfs;&lt;BR /&gt;KEYTAB=$(find /run/cloudera-scm-agent/process -name ${NAME}.keytab -path "*${NAME}-*" | sort | tail -n 1);&lt;BR /&gt;PRINCIPAL=$(klist -kt "$KEYTAB" | awk '{ print $4 }' | grep "^${NAME}" | head -n 1);&lt;BR /&gt;kinit -kt "${KEYTAB}" "${PRINCIPAL}"&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 17:45:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cleaning-Hive-temp-directory-Permissions-problems-in-CDP/m-p/345154#M234395</guid>
      <dc:creator>vinayreddyperam</dc:creator>
      <dc:date>2022-06-07T17:45:09Z</dc:date>
    </item>
  </channel>
</rss>

