| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.util.NativeCodeLoader
public class NativeCodeLoader
A helper to load the native hadoop code i.e. libhadoop.so. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so or the default java implementations where appropriate.
| Constructor Summary | |
|---|---|
| NativeCodeLoader() | |
| Method Summary | |
|---|---|
|  boolean | getLoadNativeLibraries(Configuration conf)Return if native hadoop libraries, if present, can be used for this job. | 
| static boolean | isNativeCodeLoaded()Check if native-hadoop code is loaded for this platform. | 
|  void | setLoadNativeLibraries(Configuration conf,
                       boolean loadNativeLibraries)Set if native hadoop libraries, if present, can be used for this job. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public NativeCodeLoader()
| Method Detail | 
|---|
public static boolean isNativeCodeLoaded()
true if native-hadoop is loaded, 
         else falsepublic boolean getLoadNativeLibraries(Configuration conf)
conf - configuration
true if native hadoop libraries, if present, can be 
         used for this job; false otherwise.
public void setLoadNativeLibraries(Configuration conf,
                                   boolean loadNativeLibraries)
conf - configurationloadNativeLibraries - can native hadoop libraries be loaded| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||