hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8503) fs.copyoLocalFile(src, dst);will have NPE and can not run successful in windows
Date Mon, 01 Jun 2015 06:24:17 GMT

    [ https://issues.apache.org/jira/browse/HDFS-8503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14566976#comment-14566976
] 

Brahma Reddy Battula commented on HDFS-8503:
--------------------------------------------

AFAIK this will come when HADOOP_HOME is not set from windows( like where natives will be
present,,need to give like HADOOP_HOME=\hadoop\hadoop-common-project\hadoop-common\target)

> fs.copyoLocalFile(src, dst);will have NPE and can not run successful in windows
> -------------------------------------------------------------------------------
>
>                 Key: HDFS-8503
>                 URL: https://issues.apache.org/jira/browse/HDFS-8503
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.7.0
>            Reporter: huangyitian
>            Assignee: surendra singh lilhore
>
> ======Test Code=======
> //copy file from HDFS to local
> fs.copyToLocalFile(dst, new Path(copiedlocalfile));
> ======ERROR Exception======
> java.lang.NullPointerException
> 	at java.lang.ProcessBuilder.start(Unknown Source)
> 	at org.apache.hadoop.util.Shell.runCommand(Shell.java:483)
> 	at org.apache.hadoop.util.Shell.run(Shell.java:456)
> 	at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722)
> 	at org.apache.hadoop.util.Shell.execCommand(Shell.java:815)
> 	at org.apache.hadoop.util.Shell.execCommand(Shell.java:798)
> 	at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:740)
> 	at org.apache.hadoop.fs.RawLocalFileSystem$LocalFSFileOutputStream.<init>(RawLocalFileSystem.java:224)
> 	at org.apache.hadoop.fs.RawLocalFileSystem$LocalFSFileOutputStream.<init>(RawLocalFileSystem.java:208)
> 	at org.apache.hadoop.fs.RawLocalFileSystem.createOutputStreamWithMode(RawLocalFileSystem.java:304)
> 	at org.apache.hadoop.fs.RawLocalFileSystem.create(RawLocalFileSystem.java:292)
> 	at org.apache.hadoop.fs.RawLocalFileSystem.create(RawLocalFileSystem.java:325)
> 	at org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSOutputSummer.<init>(ChecksumFileSystem.java:393)
> 	at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:456)
> 	at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:435)
> 	at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:909)
> 	at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:890)
> 	at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:787)
> 	at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:365)
> 	at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:338)java.lang.NullPointerException
> 	at java.lang.ProcessBuilder.start(Unknown Source)
> 	at org.apache.hadoop.util.Shell.runCommand(Shell.java:483)
> 	at org.apache.hadoop.util.Shell.run(Shell.java:456)
> 	at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722)
> 	at org.apache.hadoop.util.Shell.execCommand(Shell.java:815)
> 	at org.apache.hadoop.util.Shell.execCommand(She
> 	at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:289)
> 	at org.apache.hadoop.fs.FileSystem.copyToLocalFile(FileSystem.java:2030)
> 	at org.apache.hadoop.fs.FileSystem.copyToLocalFile(FileSystem.java:1999)
> 	at org.apache.hadoop.fs.FileSystem.copyToLocalFile(FileSystem.java:1975)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message