I have faced the same problem and could solve it. QueryResult is the java class which is generated automatically while importing from sqoop that will be there in your machine. compile the file and make the jar and add to the classpath. Then try it. It will work