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 7853559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:44:08+00:00 2026-06-02T19:44:08+00:00

I have written a native hadoop compression codec. To let it work with hadoop

  • 0

I have written a native hadoop compression codec. To let it work with hadoop I need to compile native (C code) it to libhadoop.so.

How can I achieve this?

  • 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-02T19:44:11+00:00Added an answer on June 2, 2026 at 7:44 pm

    You don’t need to compile this into libhadoop.so:

    • Compile your own .so and distribute to your cluster nodes (into the same directory as the current libhadoop.so
    • I assume you’ve also written your own CompressionCodec (similar to GzipCodec) – add a static block to this code which tries to load the library using System.loadLibrary("mylibrary"); (for a lib named libmylibrary.so).
    • Amend your cluster configuration to include your new compression codec class in the registered list of codecs (amend the io.compression.codecs configuration property):
    • Restart your task trackers

    As a reference, you can follow the implementation and configuration notes for the Google Snappy codec:

    • http://code.google.com/p/hadoop-snappy/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written code in native ANSI C++ that does some complicated numerical analysis.
I have written two managed C++ wrappers for native C++ classes and I need
I have written this code (this is a snippet) that doesn't seem to be
I have written a code in native C++ for a computationally expensive numerical analysis
Suppose I have an application written in native C++ (over 500k lines of code)
I have written a program in VB6. When I compile it and send it
I have written a program that uses qhttp to get a webpage. This works
I have an application written in native C++ which intends intensive computation. In fact
I have written the code to select a folder from the SDCard and its
Let's say I have written a Class Library (dll) in .Net and now I

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.