Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8609405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:52:27+00:00 2026-06-12T03:52:27+00:00

I am trying to read a file with hadoop fs -text . The file

  • 0

I am trying to read a file with hadoop fs -text. The file is a sequence file defined in my own classes – for that I am using parameter -libjars. Normally. This time I am getting InvocationTargetException with no stacktrace:

# hadoop fs -libjars myjar.jar -text /tmp/part-r-00000
12/09/21 17:24:18 WARN snappy.LoadSnappy: Snappy native library is available
12/09/21 17:24:18 INFO util.NativeCodeLoader: Loaded the native-hadoop library
12/09/21 17:24:18 INFO snappy.LoadSnappy: Snappy native library loaded
text: java.lang.reflect.InvocationTargetException

It is hard to see what is going on.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T03:52:28+00:00Added an answer on June 12, 2026 at 3:52 am

    Probably something to do with nested classes or dependencies classes in your Key / Value class.

    the -libjars option when used the FsShell (hadoop fs) adds your jar to the classpath (as you’d expect), so your root Key / Value class is now available. What is probably happening here is your Key / Value class depends on another class either not in the jar listed in libjars, or is in a nested jar (in the libs folder in the jar).

    This is made confusing by the fact the hadoop jar command will unpack you jar and add all the nested jars in the lib folder to the classpath when it submits a job, but the FsShell command does not unpack the jar.

    Annoyingly the FsShell doesn’t dump full stack traces to stderr, but if you enable debug level logging you should see the full stack trace (not sure how you do this though)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to read a text file, i'm using fileImputStream, and reading all the
I am trying to read file headers using java, I want to get file
I'm trying to read a file in my maven project at /src/main/resources/file.txt. I'm using
I am trying to read from a file using fgets and sscanf. In my
i am trying to read jpg file and convert into byte array this is
I am trying to read a file that has been saved on the /system
I am trying to read a file using File Reader but I continue to
I'm trying to read .xlsm file using Apache POI library (3.8-beta5): Workbook wb =
I'm trying to read a file that exists in the following location of my
I'm trying to read a file that I have a web address for into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.