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 Plain View
MapReduce >> mail # user >> test put file to hdfs error


+
周梦想 2013-01-17, 06:02
Copy link to this message
-
Re: test put file to hdfs error
The use of JDK 1.7 with 1.0.x specifically is not supported nor tested. Can
you retry on a 1.6 JVM and also share your config files?
On Thu, Jan 17, 2013 at 11:32 AM, 周梦想 <[EMAIL PROTECTED]> wrote:

> hello,
> I write a test code to put local file to hdfs,but it report error on line
> 66. give me some advices. thanks.
>
> env:
> hadoop 1.0.4,centos 5.5,java:
> [zhouhh@Hadoop48 hadoop-1.0.4]$ echo $JAVA_HOME
> /usr/java/jdk1.7.0
>
> Exception in thread "main" java.lang.StackOverflowError
> at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>  at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242)
> at java.io.File.exists(File.java:772)
>  at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:1057)
> at sun.misc.URLClassPath$FileLoader.findResource(URLClassPath.java:1024)
>  at sun.misc.URLClassPath.findResource(URLClassPath.java:172)
> at java.net.URLClassLoader$2.run(URLClassLoader.java:551)
>  at java.net.URLClassLoader$2.run(URLClassLoader.java:549)
> at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findResource(URLClassLoader.java:548)
> at java.lang.ClassLoader.getResource(ClassLoader.java:1138)
>  at java.net.URLClassLoader.getResourceAsStream(URLClassLoader.java:227)
> at javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:94)
>  at java.security.AccessController.doPrivileged(Native Method)
> at
> javax.xml.parsers.SecuritySupport.getResourceAsStream(SecuritySupport.java:87)
>  at
> javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:248)
> at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:221)
>  at
> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:121)
> at
> org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1135)
>  at
> org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1119)
> at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:1063)
>  at org.apache.hadoop.conf.Configuration.get(Configuration.java:416)
> at
> org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:193)
>  at
> org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:184)
> at
> org.apache.hadoop.security.UserGroupInformation.isSecurityEnabled(UserGroupInformation.java:236)
>  at
> org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:466)
> at
> org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:452)
>  at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:1494)
> at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1395)
>  at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:254)
>
<snip>

--
Harsh J
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