<?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 deny rm with skiptrash in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/deny-rm-with-skiptrash/m-p/236879#M198692</link>
    <description>&lt;P&gt;How to denied use rm with -skiptrash on HDFS?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I want to block any attempts to delete a file with the -skiptrash option.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2019 18:54:04 GMT</pubDate>
    <dc:creator>ururu</dc:creator>
    <dc:date>2019-03-26T18:54:04Z</dc:date>
    <item>
      <title>deny rm with skiptrash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/deny-rm-with-skiptrash/m-p/236879#M198692</link>
      <description>&lt;P&gt;How to denied use rm with -skiptrash on HDFS?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I want to block any attempts to delete a file with the -skiptrash option.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 18:54:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/deny-rm-with-skiptrash/m-p/236879#M198692</guid>
      <dc:creator>ururu</dc:creator>
      <dc:date>2019-03-26T18:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: deny rm with skiptrash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/deny-rm-with-skiptrash/m-p/236880#M198693</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;A rel="user" href="https://community.cloudera.com/users/63185/trinimak.html" nodeid="63185"&gt;@Ruslan Fialkovsky&lt;/A&gt; You need to write a custom code which can block -skiptrash command&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;This is the path where you need to place the command&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt; vi /usr/hdp/current/hadoop-client/bin/hadoop&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;&lt;BR /&gt;export HADOOP_HOME=${HADOOP_HOME:-/usr/hdp/2.6.5.0-292/hadoop}&lt;BR /&gt;export HADOOP_MAPRED_HOME=${HADOOP_MAPRED_HOME:-/usr/hdp/2.6.5.0-292/hadoop-mapreduce}&lt;BR /&gt;export HADOOP_YARN_HOME=${HADOOP_YARN_HOME:-/usr/hdp/2.6.5.0-292/hadoop-yarn}&lt;BR /&gt;export HADOOP_LIBEXEC_DIR=${HADOOP_HOME}/libexec&lt;BR /&gt;export HDP_VERSION=${HDP_VERSION:-2.6.5.0-292}&lt;BR /&gt;export HADOOP_OPTS="${HADOOP_OPTS} -Dhdp.version=${HDP_VERSION}"&lt;BR /&gt;&lt;BR /&gt;exec /usr/hdp/2.6.5.0-292//hadoop/bin/hadoop.distro "$@"&lt;BR /&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;###here you need to write code to restrict skip trash&lt;BR /&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 18:16:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/deny-rm-with-skiptrash/m-p/236880#M198693</guid>
      <dc:creator>chennuri_gouris</dc:creator>
      <dc:date>2019-03-28T18:16:37Z</dc:date>
    </item>
  </channel>
</rss>

