Hi,

Please subscribe to the mailing list as described here:
http://apache-ignite-users.70518.x6.nabble.com/mailing_list/MailingListOptions.jtp?forum=1


jarredfox wrote
> Hi. 
> 
> I test the sample code on my hadoop cluster server.
> And, The result is faster than HDFS (about 10x)  
> thanks!
> 
> But, I have an problem .. doing another test
> I delete file with IGFS, then real file(on HDFS) is deleted 
> but When I check the deleted file with Exist API, the file file still
> exists. 
> 
> below test code 
> 
> String igfs_uri = "igfs://
> <name>
> @
> <serverip>
> :10500/";
> fs = FileSystem.get(URI.create(igfs_uri), configuration, "hadoop");
> 
> Path file = new Path("testfile.txt");
> if(fs.exists(file)) {
>     System.out.println("delete testfile.txt ....");
>     fs.delete(file, false);
>     System.out.println(("Exist testfile.txt ? : " + fs.exists(file));
> }
> 
> the result is always "true" 
> ( i test " fs.delete(file), fs.delete(file, true) " but result is same)
> 
> When i restart ignity daemon, the file is not exist.

I've just created a similar test and it works for me. Is it possible that
other operations on the same file are happening concurrently? Are you
updating files exclusively via IGFS, or HDFS is accessed directly as well?

Can you also check what fs.delete() method returns? It should return true in
case the file is actually deleted. You can also try to read the file
contents and see what happens - is it really there or it's just fs.exists()
that returns incorrect results? This will help to isolate the issue.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/How-use-Hadoop-accelerator-tp1314p1349.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to