Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> Gratuitous use of CHMOD in windows


Copy link to this message
-
Gratuitous use of CHMOD in windows
I am running a job on a cluster launching from a windows box and "
fs.default.name" to point the job to the cluster.
Everything works until the last step where I say

FileSystem fileSystem = FileSystem.get(config); // this is hdfs
fileSystem.copyToLocalFile(src, dst); // local system

at this point RawLocalFileSystem tries to exec chmod which is not on
windows.

This looks like a bug - it seems that there should be a fallback system or
better yet a call to the
Java standard File.canWrite command before attempting to alter permissions

--
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
206-384-1340 (cell)
Skype lordjoe_com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB