com.splout.db.common
Class SploutHadoopConfiguration

java.lang.Object
  extended by com.splout.db.common.SploutHadoopConfiguration

public class SploutHadoopConfiguration
extends java.lang.Object

Configuratio helper class.


Constructor Summary
SploutHadoopConfiguration()
           
 
Method Summary
static void addSQLite4JavaNativeLibsToDC(org.apache.hadoop.conf.Configuration conf)
          Adds the SQLite native libraries to the DistributedCache so that they will be present in the java.library.path of the child's Hadoop task.
static void addSQLite4JavaNativeLibsToDC(org.apache.hadoop.conf.Configuration conf, java.io.File nativeLibsLocalPath)
          Adds the SQLite native libraries to the DistributedCache so that they will be present in the java.library.path of the child's Hadoop task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SploutHadoopConfiguration

public SploutHadoopConfiguration()
Method Detail

addSQLite4JavaNativeLibsToDC

public static void addSQLite4JavaNativeLibsToDC(org.apache.hadoop.conf.Configuration conf)
                                         throws java.io.IOException,
                                                java.net.URISyntaxException
Adds the SQLite native libraries to the DistributedCache so that they will be present in the java.library.path of the child's Hadoop task.

Usually you don't need to do this as the task will already try to load them from the job's uncompressed JAR, however it is not assured that all Hadoop versions do the uncompressing of the JAR so in this case it's safer to use this.

This method uses the default "native" folder.

Throws:
java.io.IOException
java.net.URISyntaxException

addSQLite4JavaNativeLibsToDC

public static void addSQLite4JavaNativeLibsToDC(org.apache.hadoop.conf.Configuration conf,
                                                java.io.File nativeLibsLocalPath)
                                         throws java.io.IOException,
                                                java.net.URISyntaxException
Adds the SQLite native libraries to the DistributedCache so that they will be present in the java.library.path of the child's Hadoop task.

Usually you don't need to do this as the task will already try to load them from the job's uncompressed JAR, however it is not assured that all Hadoop versions do the uncompressing of the JAR so in this case it's safer to use this.

Throws:
java.io.IOException
java.net.URISyntaxException


Copyright © 2012-2013 Datasalt Systems S.L.. All Rights Reserved.