hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sujit Dhamale <sujitdhamal...@gmail.com>
Subject getting Error while importing FileStatus Class
Date Wed, 13 Mar 2013 04:31:12 GMT
Hi Everyone,
need help for getting File Status.

while importing org.apache.hadoop.fs.FileStatus;

getting error  *"The import org.apache.hadoop.fs.FileStatus conflicts with
a type defined in the same file"*

*Hadoop Version :*1.0.4

*Java Class : *

package fs;
import java.net.URI;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
*import org.apache.hadoop.fs.FileStatus;*
import org.apache.hadoop.fs.Path;
public class FileStatus
{
    public static void main(String [] args) throws Exception
    {
        String uri=args[0];
        Configuration conf=new Configuration();
        FileSystem fs = FileSystem.get(conf);
        Path file1=new Path("/sujit.txt");

    }

}



Kind Regards
Sujit Dhamale
(+91 9970086652)

Mime
View raw message