[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2013-08-13 Thread Magic Xie (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13739234#comment-13739234
 ] 

Magic Xie commented on HADOOP-7682:
---

Hi all, this bug seems fixed.
Please see 
http://svn.apache.org/viewvc/hadoop/common/tags/release-2.1.0-beta-rc1/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java?revision=1065901view=markup
and HADOOP-7126. 
Fix file permission setting for RawLocalFileSystem on Windows. Contributed by 
Po Cheung.

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2013-06-05 Thread Joshua Caplan (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13676684#comment-13676684
 ] 

Joshua Caplan commented on HADOOP-7682:
---

While we're creating a WinLocalFileSystem object, I found another helpful 
override:

public boolean rename( Path src, Path dst ) throws IOException {
if ( exists( dst ) )
delete( dst, true );
return super.rename( src, dst );
}

This solves the problem with DistributedCache on Windows for local testing 
wherein a cache file expected at

 
/tmp/hadoop-user/mapred/local/archive/random1_random2_random3/path/lastPath/file

ends up at

 
/tmp/hadoop-user/mapred/local/archive/random1_random2_random3/path/lastPath/lastPath-work--random4/file

and is invisible to the tasks that need it.  Can't even express how much pain 
that alleviates.

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2013-05-06 Thread Todd Fast (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13649539#comment-13649539
 ] 

Todd Fast commented on HADOOP-7682:
---

Matt, the patch I created last year should fix the issue without needing to 
modify the Hadoop jars:

https://github.com/congainc/patch-hadoop_7682-1.0.x-win

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2013-04-08 Thread Daniel Czajka (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13625368#comment-13625368
 ] 

Daniel Czajka commented on HADOOP-7682:
---

Hey, I checked on latest stable 1.0.4/win7 and still the same error occurred. 
Are there any plans/timelines to fix it ?

Cheers,
Daniel

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2013-01-15 Thread Kirill Vergun (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13553956#comment-13553956
 ] 

Kirill Vergun commented on HADOOP-7682:
---

visionersadak,

are you running your installation under “single node” (pseudo-distributed) 
configuration?
I am trying to do my own patching, it may work on such type of configuration.

https://github.com/o-nix/hadoop-patches

But it slows down every hadoop shell command execution a lot.

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2013-01-15 Thread FKorning (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13554028#comment-13554028
 ] 

FKorning commented on HADOOP-7682:
--

yes.  it is extremely slow, which sort of makes the whole windows thing a bit 
moot.  then again, if you have a farm of windows boxes sitting idle, you may as 
well use their cycles...

Sent from my iPhone




 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-12-31 Thread Han Hui Wen (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13541333#comment-13541333
 ] 

Han Hui Wen  commented on HADOOP-7682:
--

I find one approach : 

Just need change file ${HADOOP_HOME}/bin/hadoop-config.sh

from :

JAVA_PLATFORM=`CLASSPATH=${CLASSPATH} ${JAVA} -Xmx32m 
${HADOOP_JAVA_PLATFORM_OPTS} org.apache.hadoop.util.PlatformName | sed -e ”s/ 
/_/g”`

to:

JAVA_PLATFORM=`CLASSPATH=${CLASSPATH} ${JAVA} -Xmx32m -classpath 
${HADOOP_COMMON_HOME}/hadoop-common-0.21.0.jar 
org.apache.hadoop.util.PlatformName | sed -e ”s/ /_/g”`

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-10-24 Thread Todd Fast (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13483537#comment-13483537
 ] 

Todd Fast commented on HADOOP-7682:
---

It sounded as if he was running hadoop in pseudo-distributed or fully 
distributed mode, and perhaps the way the child processes are spawned doesn't 
include the patch in the classpath. A quick test to verify this theory, though 
I wouldn't do this under normal running conditions, would be to put the patch 
JAR in the JDK's ${JAVA_HOME}/jre/lib/ext directory, which includes it in the 
classpath for all VMs. If that works, then you know that it's something to do 
with the local classpath when the hadoop VMs are started. At that point, you 
can further debug how the processes are spawned, or you can run in standalone 
mode instead.

For standalone mode, the patch is automatically added to the classpath from the 
${HADOOP_HOME}/lib directory, and if the patch is installed correctly, you 
should see some logging that indicates it is working.

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-10-23 Thread frank (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13482671#comment-13482671
 ] 

frank commented on HADOOP-7682:
---

Anyone find out what is causing visionersadak's error? Todd's fix worked great; 
now I'm getting the same failed to set permissions error.

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-09-21 Thread Luiz Veronesi (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13461005#comment-13461005
 ] 

Luiz Veronesi commented on HADOOP-7682:
---

Thanks Todd Fast for this workaround.

That also solved running Nutch within Eclipse. 

Exactly the same thing must be done to make it works.

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-09-19 Thread visionersadak (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13459067#comment-13459067
 ] 

visionersadak commented on HADOOP-7682:
---

thanks a ton todd the path u mentioned got our task tracker running on windows 
but when we started creating a HAR job its throwing this error

java.io.IOException: Failed to set permissions of path: 
\tmp\hadoop-cyg_server\mapred\local\taskTracker\sadak(myusername) to 0700


 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-09-12 Thread JIRA

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13453878#comment-13453878
 ] 

丁冬超 commented on HADOOP-7682:
-

the same  on hadoop  1.0.1  with win7 and cygwin  。  
 because just test  ,so  i suggest a easy workaround :
1、  alert  FileUtil
mkdir $HADOOP_HOME/classes  
and  then alter the  org.apache.hadoop.fs.FileUtil.checkReturnValue  remove the 
Exception .
build  、copy FileUtil.class  to $HADOOP_HOME/classes   。


2 、alter classpath 

add shell in  $HADOOP_HOME/hadoop  file :

if [ -d $HADOOP_HOME/classes ]; then
  CLASSPATH=${CLASSPATH}:$HADOOP_HOME/classes
fi

make sure this classpath is in front of  $HADOOP_HOME/hadoop-core-1.*.*.jar  。


restartOK  


 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-09-04 Thread Todd Fast (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13448072#comment-13448072
 ] 

Todd Fast commented on HADOOP-7682:
---

Thanks, Joshua! Your workaround got us running locally on Hadoop 1.0.3 without 
any issues. Here is a GitHub repository for the source (as well as a pre-built 
JAR):

https://github.com/congainc/patch-hadoop_7682-1.0.x-win


 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-08-23 Thread Joshua Caplan (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13440120#comment-13440120
 ] 

Joshua Caplan commented on HADOOP-7682:
---

May I suggest a simple workaround for Windows users struggling with this new 
impediment.

create a WinLocalFileSystem class (subclass of LocalFileSystem) which ignores 
IOExceptions on setPermissions() or, if you're feeling ambitious, does 
something more appropriate when trying to set them.  You will also need to 
override mkdirs( Path, FsPermission ) to delegate to mkdirs( Path ) and call 
this.setPermission.

Register this class as the implementation of the file schema, using the 
property definition

fs.file.impl=com.package.name.WinLocalFileSystem

That got me past it for local testing.


 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-06-19 Thread Ismail Shaik (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13396813#comment-13396813
 ] 

Ismail Shaik commented on HADOOP-7682:
--

I have tested with v1.0.1 and same problen within eclipse/cygwin.Do you have 
quick workaround?

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: HA Branch (HDFS-1623), 0.20.203.0, 0.20.205.0, 1.0.0, 
 1.0.1
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-05-05 Thread FKorning (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13268979#comment-13268979
 ] 

FKorning commented on HADOOP-7682:
--


I've managed to get this working to the point where jobs are dispatched, tasks 
executed, and results compiled.

* [http://en.wikisource.org/wiki/User:Fkorning/Code/Haddoop-on-Cygwin]

However we still need to get the servlets to understand cygwin symlinks.  I 
have no idea how to do this in Jetty.

These two links show how to allow Tomcat and jetty to follow symlinks, but I 
don't know if this works in cygwin.
*  
http://www.lamoree.com/machblog/index.cfm?event=showEntryentryId=A2F0ED76-A500-41A6-A1DFDE0D1996F925
*  
http://stackoverflow.com/questions/315093/configure-symlinks-for-single-directory-in-tomcat

Otherwise we'll have to open up the jetty code and replace java.io.File with 
org.apache.hadoop.fs.LinkedFile.




 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 0.20.203.0, 0.20.205.0, 1.0.0
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-05-05 Thread FKorning (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13268984#comment-13268984
 ] 

FKorning commented on HADOOP-7682:
--

make that: http://en.wikisource.org/wiki/User:Fkorning/Code/Hadoop-on-Cygwin

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 0.20.203.0, 0.20.205.0, 1.0.0
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-04-19 Thread Dave Latham (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13257676#comment-13257676
 ] 

Dave Latham commented on HADOOP-7682:
-

Here's my understanding of this issue from digging around a bit in case it's 
helpful for others.  I could be mistaken on some of the details.

Some time ago, RawLocalFileSystem.setPermission used to use a shell exec 
command to fork a process to alter permissions of a file.  

Somewhere along the 0.20 branch (I believe in the 0.20.security branch) it was 
decided that this was too slow, and instead 
java.io.File.set{Readable|Writable|Executable} should be used (see HADOOP-6304 
for one such issue.  It has a patch with the logic that wound up in FileUtil 
though perhaps committed from a different patch).  However the java.io.File 
methods don't allow one to directly set all the permissions so the code first 
has to clear permissions, then build them up again.  This resulted in two 
problems.  First, there is a race condition when the file briefly has no 
permissions even for the owner (see MAPREDUCE-2238 for more detail).  Second, 
Windows doesn't support clearing all permissions on the file (this JIRA).

The first problem was worked around in HADOOP-7110 (HADOOP-7432 backported it 
to this branch) by using JNI native code instead.  However, if the native code 
is not available, then it falls back to the java.io.File methods.  So, the 
second problem still remains, that FileUtil.setPermission (and thus the 
RawLocalFileSystem setPermission) does not work on Windows because Windows does 
not have the native code implementation and also fails the java.io.File 
fallback.

The issues FKorning ran into in a comment above appear to be wider than this 
particular JIRA, though I may have misunderstood what led to his shorn yak.

Windows is listed as a supported platform for Hadoop, and some of our 
developers use Windows as a development environment, so it's important for us 
that hadoop at least functions on Windows, even if it's not as performant as 
our production clusters on Linux.  I noted that this is currently the highest 
voted open JIRA for hadoop.

In order for it to function on Windows, I added a final fallback in 
FileUtil.setPermission to revert to the older behavior of using a shell exec 
fork for setPermission when the other methods fail.  Perhaps it will be helpful 
for others:

{code}
  public static void setPermission(File f, FsPermission permission
   ) throws IOException {
FsAction user = permission.getUserAction();
FsAction group = permission.getGroupAction();
FsAction other = permission.getOtherAction();

// use the native/fork if the group/other permissions are different
// or if the native is available
if (group != other || NativeIO.isAvailable()) {
  execSetPermission(f, permission);
  return;
}

try
{
boolean rv = true;

// read perms
rv = f.setReadable(group.implies(FsAction.READ), false);
checkReturnValue(rv, f, permission);
if (group.implies(FsAction.READ) != user.implies(FsAction.READ)) {
  f.setReadable(user.implies(FsAction.READ), true);
  checkReturnValue(rv, f, permission);
}

// write perms
rv = f.setWritable(group.implies(FsAction.WRITE), false);
checkReturnValue(rv, f, permission);
if (group.implies(FsAction.WRITE) != user.implies(FsAction.WRITE)) {
  f.setWritable(user.implies(FsAction.WRITE), true);
  checkReturnValue(rv, f, permission);
}

// exec perms
rv = f.setExecutable(group.implies(FsAction.EXECUTE), false);
checkReturnValue(rv, f, permission);
if (group.implies(FsAction.EXECUTE) != 
user.implies(FsAction.EXECUTE)) {
  f.setExecutable(user.implies(FsAction.EXECUTE), true);
  checkReturnValue(rv, f, permission);
}
}
catch (IOException ioe)
{
LOG.warn(Java file permissions failed to set  + f +  to  + 
permission +  falling back to fork);
execSetPermission(f, permission);
}

  }
{code}

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 0.20.203.0, 0.20.205.0, 1.0.0
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 

[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-03-23 Thread FKorning (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13236645#comment-13236645
 ] 

FKorning commented on HADOOP-7682:
--


There's a bunch of issues at work.  I've patched this up locally
on my own 1.0.2-SNAPSHOT, but it takes a lot of yak-shaving to fix.



--- 

First you need to set up hadoop-1.0.1 including source, ant, ivy,
and cygwin with ssh/ssl and tcp_wrappers.

Then use sshd_config to create a cyg_server priviledged user.
From an admin cygwin shell, you then have to edit the /etc/passwd
file and give that user a valid shell and user home, change the
password for the user, and finally generate ssh keys for the user
and copy the user's id_rsa.pub public key into ~/.ssh/authorized_keys.

if done right you should be able to ssh cyg_server@localhost.


--- 

Now the main problem is a confusion between the hadoop shell scripts
that expect unix paths like /tmp, and the haddop java binaries who
interpret this path as C:\tmp.

Unfortunately, neither Cygwin symlinks nor even Windows NT Junctions
are supported by the java io filesystem.  Thus the only way to get
around this is to enforce the cygwin paths to be identical to windows
paths.

I get around this by creating a circular symlink in /cygwin - /.
To avoid confusion with C: drive mappings, all my paths are relative.
This means that windows \cygwin\tmp equals cygwin's /cygwin/tmp.

For pid files use /cygwin/tmp/
For tmp file  use /cygwin/tmp/haddop-${USER}/
For log files use /cygwin/tmp/haddop-${USER}/logs/


--- 

First the ssh slaves invocation warpper is broken because it fails to
provide the user's ssh login, which isn't defaulted to in cygwin openssh.


slaves.sh:

for slave in `cat $HOSTLIST|sed  s/#.*$//;/^$/d`; do
 ssh -l $USER $HADOOP_SSH_OPTS $slave $${@// /\\ } \
   21 | sed s/^/$slave: / 
 if [ $HADOOP_SLAVE_SLEEP !=  ]; then
   sleep $HADOOP_SLAVE_SLEEP
 fi
done


Next the hadoop shell scripts are broken.  you need to fix the environments
for cygwin paths in hadoop-env.sh, and then make sure this file is invoked
by both hadoop-config.sh, and finally the hadoop* sh wrapper script. For me
its JRE java invocation was also broken, so I provide the whole srcript below.


hadoop-env.sh:

  HADOOP_PID_DIR=/cygwin/tmp/
  HADOOP_TMP_DIR=/cygwin/tmp/hadoop-${USER}
  HADOOP_LOG_DIR=/cygwin/tmp/hadoop-${USER}/logs



hadoop (sh):


#!/usr/bin/env bash

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the License); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


# The Hadoop command script
#
# Environment Variables
#
#   JAVA_HOMEThe java implementation to use.  Overrides JAVA_HOME.
#
#   HADOOP_CLASSPATH Extra Java CLASSPATH entries.
#
#   HADOOP_USER_CLASSPATH_FIRST  When defined, the HADOOP_CLASSPATH is 
#added in the beginning of the global
#classpath. Can be defined, for example,
#by doing 
#export HADOOP_USER_CLASSPATH_FIRST=true
#
#   HADOOP_HEAPSIZE  The maximum amount of heap to use, in MB. 
#Default is 1000.
#
#   HADOOP_OPTS  Extra Java runtime options.
#   
#   HADOOP_NAMENODE_OPTS   These options are added to HADOOP_OPTS 
#   HADOOP_CLIENT_OPTS when the respective command is run.
#   HADOOP_{COMMAND}_OPTS etc  HADOOP_JT_OPTS applies to JobTracker 
#  for e.g.  HADOOP_CLIENT_OPTS applies to 
#  more than one command (fs, dfs, fsck, 
#  dfsadmin etc)  
#
#   HADOOP_CONF_DIR  Alternate conf dir. Default is ${HADOOP_HOME}/conf.
#
#   HADOOP_ROOT_LOGGER The root appender. Default is INFO,console
#

bin=`dirname $0`
bin=`cd $bin; pwd`

cygwin=false
case `uname` in
CYGWIN*) cygwin=true;;
esac


if [ -e $bin/../libexec/hadoop-config.sh ]; then
  . $bin/../libexec/hadoop-config.sh
else
  . $bin/hadoop-config.sh
fi


# if no args specified, show usage
if [ $# = 0 ]; then
  echo Usage: hadoop [--config confdir] COMMAND
  echo where COMMAND is one of:
  echo   namenode -format format the DFS filesystem
  echo   secondarynamenoderun the DFS secondary namenode
  echo   namenode run the 

[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-03-14 Thread tigar (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13229842#comment-13229842
 ] 

tigar commented on HADOOP-7682:
---

same problem with cygin~:('

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 0.20.203.0, 0.20.205.0, 1.0.0
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2012-03-14 Thread tigar (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13229848#comment-13229848
 ] 

tigar commented on HADOOP-7682:
---

ps: my hadoop version is 1.0.1~

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 0.20.203.0, 0.20.205.0, 1.0.0
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2011-11-02 Thread Todd Fast (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13142849#comment-13142849
 ] 

Todd Fast commented on HADOOP-7682:
---

Also a problem on 0.20.205. Problem exists with or without running Hadoop with 
Cygwin. The only fix seems to be to downgrade to 0.20.2.

Additional comments around the Web on this bug:
http://comments.gmane.org/gmane.comp.jakarta.lucene.hadoop.user/25837
http://lucene.472066.n3.nabble.com/SimpleKMeansCLustering-quot-Failed-to-set-permissions-of-path-to-0700-quot-td3429867.html

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 0.20.203.0
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HADOOP-7682) taskTracker could not start because Failed to set permissions to ttprivate to 0700

2011-09-27 Thread Matthieu Lecoutre (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13115351#comment-13115351
 ] 

Matthieu Lecoutre commented on HADOOP-7682:
---

Thanks Magic Xie, 
  Same problem on 0.20.204 on windows

 taskTracker could not start because Failed to set permissions to ttprivate 
 to 0700
 --

 Key: HADOOP-7682
 URL: https://issues.apache.org/jira/browse/HADOOP-7682
 Project: Hadoop Common
  Issue Type: Bug
  Components: fs
Affects Versions: 0.20.203.0
 Environment: OS:WindowsXP SP3 , Filesystem :NTFS, cygwin 1.7.9-1, 
 jdk1.6.0_05
Reporter: Magic Xie

 ERROR org.apache.hadoop.mapred.TaskTracker:Can not start task tracker because 
 java.io.IOException:Failed to set permissions of 
 path:/tmp/hadoop-cyg_server/mapred/local/ttprivate to 0700
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at 
 org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:635)
 at org.apache.hadoop.mapred.TaskTracker.(TaskTracker.java:1328)
 at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3430)
 Since hadoop0.20.203 when the TaskTracker initialize, it checks the 
 permission(TaskTracker Line 624) of 
 (org.apache.hadoop.mapred.TaskTracker.TT_LOG_TMP_DIR,org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR,
  
 org.apache.hadoop.mapred.TaskTracker.TT_PRIVATE_DIR).RawLocalFileSystem(http://svn.apache.org/viewvc/hadoop/common/tags/release-0.20.203.0/src/core/org/apache/hadoop/fs/RawLocalFileSystem.java?view=markup)
  call setPermission(Line 481) to deal with it, setPermission works fine on 
 *nx, however,it dose not alway works on windows.
 setPermission call setReadable of Java.io.File in the line 498, but according 
 to the Table1 below provided by oracle,setReadable(false) will always return 
 false on windows, the same as setExecutable(false).
 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/enhancements/
 is it cause the task tracker Failed to set permissions to ttprivate to 
 0700?
 Hadoop 0.20.202 works fine in the same environment. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira