Package com.mapr.db.mapreduce.tools
Class ImportJSON
java.lang.Object
org.apache.hadoop.conf.Configured
com.mapr.db.mapreduce.tools.ImportJSON
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
public class ImportJSON
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
This utility is used when importing JSON text files into a MapR Document-DB Table.
If the utility is used with the '-bulkload' option set to 'true', the admin must
clear the bulkload flag on the MapR-DB table after the import is complete, before
the table can begin serving data, using the command
'maprcli table edit -path -bulkload false' on the server.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class reads JSON data from text files in the Map phase. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
TABLE_NAME
- See Also:
-
-
Constructor Details
-
ImportJSON
public ImportJSON()
-
-
Method Details
-
createSubmittableJob
public static org.apache.hadoop.mapreduce.Job createSubmittableJob(org.apache.hadoop.conf.Configuration conf, String[] args) throws IOException, ClassNotFoundException, InterruptedException -
run
- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
Exception
-
main
- Throws:
Exception
-