Hi, take a look for a KerberosHadoopFileSystemFactory,it can be used in kerberized hadoop env:
KerberosHadoopFileSystemFactory delegate = new KerberosHadoopFileSystemFactory(); delegate.setKeyTab("foo.keytab"); delegate.setKeyTabPrincipal("foo"); delegate.setReloginInterval(0); Evgenii 2017-08-26 18:09 GMT+03:00 ravi <meetraviparamasi...@gmail.com>: > Hi, > I have kerberos enabled zookeeper based hadoop HA environment. With out > ignite, I am able to access my hadoop file system with valid kerberos > ticket. > However by running the below command, I am getting below exception. Is > there anything i am missing in default-config.xml?. Can u provide some > proper documentation to make hdfs as secondary file system ( kerberos > enabled hadoop environment ) to ignite?. > > $HADOOP_HOME/bin/hdfs --config /$HADOOP_HOME/ignite_conf dfs -mkdir /tut1 > > Ignote default-config.xml:- (Hadoop as secondary file system) > > <property name="secondaryFileSystem"> > <bean > class="org.apache.ignite.hadoop.fs.IgniteHadoopIgfsSecondaryFileSystem"> > <property name="fileSystemFactory"> > <bean > class="org.apache.ignite.hadoop.fs.CachingHadoopFileSystemFactory"> > <property name="uri" > value="hdfs://192.168.126.207:8020/"/> > <property name="configPaths"> > <list> > > <value>/opt/Ignite2/ignite-hadoop-2.1.0/config/hadoop/ > core-site.xml</value> > </list> > </property> > </bean> > </property> > </bean> > </property> > > > > Stack Trace:- > > Caused by: > org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security. > AccessControlException): > SIMPLE authentication is not enabled. Available:[TOKEN, KERBEROS] > at org.apache.hadoop.ipc.Client.call(Client.java:1475) > [2017-08-26 18:50:11,731][ERROR][igfs-igfs-ipc-#63%null%][IgfsImpl] File > info operation in DUAL mode failed [path=/tut1] > class org.apache.ignite.igfs.IgfsException: Failed to get file status > [path=/tut1] > > > > > -- > View this message in context: http://apache-ignite-users. > 70518.x6.nabble.com/Kerberos-installation-tp16200p16427.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. >