1、solr数据导入
(1)solr数据导入使用POST.jar java文件导入
(2)使用方式
java -Durl=http://10.0.1.21:8983/solr/collection1/update -Dtype=text/csv -jar /root/post.jar /mnt/mfs/data/20190101/2019-01-01_solr_100.csv
包含solr对应的collection、导入文件的路径及名称
2、hbase数据导入
(1)在机器服务器上调用Tsv导入命令,需要导入的文件存放位置为hdfs,参数路径上需要带hbase字段列族及名称。
hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.columns=HBASE_ROW_KEY,cf:account_no,cf:agent_no,cf:area_of_job,cf:callnumber,cf:calltype,cf:data_status,cf:data_status_2,cf:data_status_3,cf:days,cf:duration,cf:filename,cf:months,cf:plaintexta,cf:plaintextb,cf:speedresulta,cf:speedresultb,cf:type_of_service,cf:years smartv smartv /tmp/yang/hbase_voice_2016-11-01.tsv