BookmarkSubscribeRSS Feed
ksuman
Obsidian | Level 7

Trying to connect Hadoop using libname getting below issue... any help

 

java.lang.ClassNotFoundException: com.sas.access.hadoop.hive.JdbcHelper

 

I have placed required jar and xml files and kept env path on sasv9_usermods.cfg in workspace server

1 REPLY 1
marktoddy
Calcite | Level 5

As the name suggests this exception in Java occurs when JVM tries to load a particular class and doesn't found the requested class in the classpath you specified. This means that, your classpath is broken. Java ClassNotFoundException thrown when an application tries to load in a class through its string name using:

 

  • The forName method in class Class.
  • The findSystemClass method in class ClassLoader .
  • The loadClass method in class ClassLoader.

 

When you get a ClassNotFoundException , it means that the Java Virtual Machine has traversed the entire classpath you specified and not found the class you've attempted to reference. The one and only solution is to check your classpath carefully.

 

Verify the name of the requested class is correct and the specified .jar file exists in your classpath. If not, you must explicitly add it to your application’s classpath.

 

If it's present in your classpath then there is high chance that your classpath is getting overridden or application is using classpath specified in jar file or start-up script and to fix that you need to find the exact classpath used by your application.

 

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1887 views
  • 0 likes
  • 2 in conversation