Using tdwallet in oozie resulting in an error

Tools

Using tdwallet in oozie resulting in an error

I have tried using tdwallet $tdwallet(passwordTDCH) in oozie configuration file.

But oozie job failed with below connector exception.

 

com.teradata.connector.common.tool.ConnectorImportTool: java.lang.ExceptionInInitializerError
	at com.teradata.connector.common.tdwallet.WalletCaller.getCleanupProcess(WalletCaller.java:350)
	at com.teradata.connector.common.tdwallet.WalletCaller.<clinit>(WalletCaller.java:120)
	at com.teradata.connector.common.tool.ConfigurationMappingUtils.performWalletSubstitutions(ConfigurationMappingUtils.java:672)
	at com.teradata.connector.common.tool.ConnectorJobRunner.runJob(ConnectorJobRunner.java:78)
	at com.teradata.connector.common.tool.ConnectorImportTool.run(ConnectorImportTool.java:74)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
	at com.teradata.connector.common.tool.ConnectorImportTool.main(ConnectorImportTool.java:813)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.oozie.action.hadoop.JavaMain.run(JavaMain.java:56)
	at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:47)
	at org.apache.oozie.action.hadoop.JavaMain.main(JavaMain.java:35)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:241)
	at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
	at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:453)
	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:343)
	at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
	at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
Caused by: com.teradata.connector.common.exception.ConnectorException: The class loader returned a URL having an unsupported protocol.
	at com.teradata.connector.common.tdwallet.WalletCaller.getCleanupProcess(WalletCaller.java:268)

But tdwallet is working fine if we use it from cli.

If any one used tdwallet with oozie and have idea about the above error, please let me know the solution.

 

Thanks.