Steve Lewis 2012-12-07, 18:19
Harsh J 2012-12-07, 22:52
The immediate problem is an access exception - users like Asterix\Steve -
completely unknown to the file system cannot write files or directories.
There is another error "Insufficient memory to start the java runtime" but
we do not get far and a chunk of this effort has been to create a small
sample to post.
The real issue is that from an external machine hadoop runs as the local
user on the client machine - in 0.2 with security turned down that worked
although the listed file ownership in hdfs was a little strange. In 1.03 it
does not work because Hadoop/hdfa will not let these foreign users own
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
Can you share your specific error/exception please?
On Fri, Dec 7, 2012 at 11:49 PM, Steve Lewis <[EMAIL PROTECTED]> wrote:
> I have been running Hadoop jobs from my local box - on the net but outside
> the cluster.
> Configuration conf = new Configuration();
> String jarfile = "somelocalfile.jar";
> conf.set("mapred.jar", jarFile);
> hdsf-site.xml has
> and all policies in hadoop-policy.xml are *
> when I run the job on my local machine it executes properly on a hadoop
> cluster. All directories in hdfs are owned by the local user - something
> like Asterix\Steve but hdfs does not seen to care and jobs run well.
> I have a colleague with a Hadoop 1.03 cluster and setting the config to
> point at the cluster's file system, jobtracker and passing in a local jar
> gives permission errors.
> I read that security has changed in 1.03. My question is was this EVER
> supposed to work? If it used to work then why does it not work now?
> (security?) Is there a way to change the hadoop cluster so it works under
> 1.03 or (preferable) to supply a username and password and ask the cluster
> to execute under that user from a client system rather than opening an ssh
> channel to the cluster?
> String hdfshost = "hdfs://MyCluster:9000";
> conf.set("fs.default.name", hdfshost);
> String jobTracker = "MyCluster:9001";
> conf.set("mapred.job.tracker", jobTracker);
> On the cluster in hdfs
> Steven M. Lewis PhD
> 4221 105th Ave NE
> Kirkland, WA 98033
> 206-384-1340 (cell)
> Skype lordjoe_com
Harsh J 2012-12-08, 02:35