gpt4 book ai didi

csv - Phoenix 通过上传批量csv文件的命令不明白吗?

转载 作者:行者123 更新时间:2023-12-02 20:54:04 24 4
gpt4 key购买 nike

我想使用phonix上传成批的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

最佳答案

我不确定您是否还在寻找答案。但是在这里。您首先要设置HADOOP_CLASSPATH,然后使用jar选项调用可执行文件“hadoop”,以查找phoenix客户端jar和要通过参数运行的类。
以下内容可以帮助您了解hadoop命令的用法(尝试在ssh shell上键入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.

关于csv - Phoenix 通过上传批量csv文件的命令不明白吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45142901/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com