2017-07-17 1 views
0

フォニックスを使ってバルクcsvファイルをアップロードしたいのですが、以下のコマンドを理解できません。私を詳細に説明できますか?フェニックスアップロードバルクcsvファイルコマンドが理解できませんか?

HADOOP_CLASSPATH=$(hbase mapredcp):/path/to/hbase/conf hadoop jar phoenix-<version>-client.jar org.apache.phoenix.mapreduce.CsvBulkLoadTool --table EXAMPLE --input /data/example.csv 

私は次のウェブサイトからこのコマンドを受け取ります。 https://phoenix.apache.org/bulk_dataload.html

答えて

0

回答がまだあるかどうかわかりません。しかしここにそれがあります。最初にHADOOP_CLASSPATHを設定し、jarオプションを指定して実行可能ファイル "hadoop"を呼び出して、phoenixクライアントjarとパラメータで実行するクラスを探します。以下は、あなたがHadoopのコマンドの使用方法を理解するのに役立ちます

Usage: hadoop [--config confdir] [COMMAND | CLASSNAME] 
    CLASSNAME   run the class named CLASSNAME 
or 
    where COMMAND is one of: 
    fs     run a generic filesystem user client 
    version    print the version 
    jar <jar>   run a jar file 
         note: please use "yarn jar" to launch 
          YARN applications, not this command. 
    checknative [-a|-h] check native hadoop and compression libraries availability 
    distcp <srcurl> <desturl> copy file or directories recursively 
    envvars    display computed Hadoop environment variables 
    archive -archiveName NAME -p <parent path> <src>* <dest> create a hadoop archive 
    classpath   prints the class path needed to get the 
    credential   interact with credential providers 
         Hadoop jar and the required libraries 
    daemonlog   get/set the log level for each daemon 
    trace    view and modify Hadoop tracing settings 

Most commands print help when invoked w/o parameters. 
(あなたのsshのシェル上でのHadoopを入力してみてください)
関連する問題