Vladimir,
It works when i provide the hdfs-site.xml files path in the
cfgPath. Before I had provided a wrong uri that's why it didn't work.
But when try to read a file using IGFS it throws the following exception.
Exception in thread "main" java.lang.IllegalArgumentException: Failed to
resolve secondary file system configuration path:
/home/sas/hadoopAccelerator/config/hconf/hdfs-site.xml
at
org.apache.ignite.internal.processors.hadoop.SecondaryFileSystemProvider.<init>(SecondaryFileSystemProvider.java:60)
at
org.apache.ignite.hadoop.fs.v1.IgniteHadoopFileSystem.initialize(IgniteHadoopFileSystem.java:293)
at
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2591)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:89)
at
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2625)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2607)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:368)
at Test.main(Test.java:59)
Test Program Test.java
<http://apache-ignite-users.70518.x6.nabble.com/file/n1375/Test.java>
Iginite XML default-config.xml
<http://apache-ignite-users.70518.x6.nabble.com/file/n1375/default-config.xml>
HDFS Site hdfs-site.xml
<http://apache-ignite-users.70518.x6.nabble.com/file/n1375/hdfs-site.xml>
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/How-to-configure-Hadoop-accelerator-for-Hadoop-High-Availability-tp1273p1375.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.