Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
MapReduce, mail # user - Re: Sticky Bit Problem (CDH4.1)


Copy link to this message
-
Re: Sticky Bit Problem (CDH4.1)
Harsh J 2012-11-07, 18:54
Hi Brian,

I am not seeing this trouble on a similar version locally:

harsh@~]$ hadoop fs -ls
drwxr-xr-x   - harsh harsh          0 2012-09-28 04:21 outfoo
[harsh@~]$ hadoop fs -chmod 1777 outfoo
[harsh@~]$ hadoop fs -chmod -R 1777 outfoo
[harsh@~]$ hadoop fs -chmod -R +t outfoo
[harsh@~]$

What is your JVM/Java version? There's one known issue with Java 7
(vs. 6) that may break things in the regex areas (I recall Oozie
facing a similar issue with one of the Patterns it was using). Make
sure you use Java 6 (1.6) for now, until there's been more testing
with Java 7 for Hadoop/etc.

On Wed, Nov 7, 2012 at 11:27 PM, Brian Derickson <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> When setting up the namenode, some of the commands that we run are:
> hadoop fs -mkdir /tmp
> hadoop fs -chmod -R 1777 /tmp
>
> This has worked for previous CDH releases of Hadoop.
>
> We recently upgraded our test cluster to CDH 4.1 and the chmod no longer
> works.
>
> sudo -u hdfs hadoop fs -chmod -R 1777 /tmp
> chmod: chmod : mode '1777' does not match the expected pattern.
>
> sudo -u hdfs hadoop fs -chmod -R +t /tmp
> chmod: chmod : mode '+t' does not match the expected pattern.
>
> This disagrees with the docs here:
> https://ccp.cloudera.com/display/CDH4DOC/Deploying+MapReduce+v1+%28MRv1%29+on+a+Cluster#DeployingMapReducev1%28MRv1%29onaCluster-Step7
>
> Has anyone else encountered this? Let me know if you need more information,
> and thanks for your time.
>

--
Harsh J
+
Arun C Murthy 2012-11-07, 20:11
+
Kartashov, Andy 2012-11-07, 20:44
+
Brian Derickson 2012-11-08, 17:15
+
Harsh J 2012-11-09, 05:26
+
Brian Derickson 2012-11-09, 17:27
+
Harsh J 2012-11-09, 19:41