首页 > 其他分享 >king-base

king-base

时间:2023-01-04 19:57:32浏览次数:43  
标签:king kingbase8 -- hive base import table com

1、kingbase报错
com.kingbase8.util.KSQLException: The authentication type 10 is not supported. Check that you have configured the sys_hba.conf file to include the client's IP address or subnet,
and that it is using an authentication scheme supported by the driver.
https://blog.csdn.net/arthemis_14/article/details/124663105
2、kinbase批量插入
https://blog.csdn.net/C3245073527/article/details/122071045
3、https://www.cnblogs.com/Ao0216/p/15963495.html Spark读取Hive数据的方式
4、https://www.csdn.net/tags/NtzaAg1sODI1MC1ibG9n.html spark设置运行用户
5、https://blog.csdn.net/qq_21159963/article/details/103457752 spark jdbc操作
6、https://blog.csdn.net/fengzheku/article/details/50688044 java.lang.NoSuchMethodError: com.google.common.collect.Sets.newConcurrentHashSet()异常解决思路

 

sqoop list-tables \
--driver com.kingbase8.Driver \
--connect jdbc:kingbase8://ip:54321/bigdata \
--username system \
--password SYSTEM


Error: java.lang.RuntimeException: java.lang.RuntimeException: com.kingbase8.util.KSQLException:
������������: ������ "client_encoding" ������������: "ANSI_X3.4-1968"


sqoop import \
--driver com.kingbase8.Driver \
--connect jdbc:kingbase8://ip:54321/bigdata \
--username system \
--password SYSTEM \
--table flow_conf \
--hive-import \
--create-hive-table \
--hive-table default.flow_conf \
-m 1

 

su hdfs;
hdfs dfs -ls /user/root/cds_alarm_dispose_flow_conf;

export HADOOP_USER_NAME=hdfs;
sqoop import \
--driver com.kingbase8.Driver \
--connect "jdbc:kingbase8://ip:54321/bigdata?useUnicode=true&characterEncoding=gbk" \
--username system \
--password SYSTEM \
--table cds_alarm_dispose_flow_conf \
--validate \
--hive-import \
--hive-table default.cds_alarm_dispose_flow_conf \
--hive-overwrite \
--delete-target-dir \
--as-parquetfile \
--hive-delims-replacement ' ' \
--fields-terminated-by '\t' \
--lines-terminated-by '\n' \
--null-string '\\N' \
--null-non-string '\\N' \
-m 1

--

export HADOOP_USER_NAME=hdfs
sqoop import \
--connect jdbc:mysql://ip2:3306/device_db \
--username bigdata \
--password Bigdata@sunward \
--query 'SELECT device_id,device_type_num_id,device_num,device_data_update_time FROM device WHERE $CONDITIONS' \
--target-dir /user/hdfs/device \
--hive-import \
--hive-database shxypt \
--hive-table device \
--hive-overwrite \
--delete-target-dir \
--as-parquetfile \
--hive-delims-replacement ' ' \
--fields-terminated-by '\t' \
--lines-terminated-by '\n' \
--null-string '\\N' \
--null-non-string '\\N' \
-m 1

sqoop export \
--connect "jdbc:postgresql://ip:54321/test?allowEncodingChanges=true&clientEncoding=utf8" \
--username system \
--password root1234 \
--table t1 \
--num-mappers 1 \
--export-dir /user/hive/warehouse/testa \
--input-fields-terminated-by ","

export HADOOP_USER_NAME=hdfs;
sqoop import \
--driver com.kingbase8.Driver \
--connect "jdbc:kingbase8://ip:54321/bigdata?allowEncodingChanges=true&clientEncoding=utf8" \
--username system \
--password SYSTEM \
--table cds_alarm_dispose_flow_conf \
--validate \
--hive-import \
--hive-table default.cds_alarm_dispose_flow_conf \
--hive-overwrite \
--delete-target-dir \
--as-parquetfile \
--hive-delims-replacement ' ' \
--fields-terminated-by '\t' \
--lines-terminated-by '\n' \
--null-string '\\N' \
--null-non-string '\\N' \
-m 1

标签:king,kingbase8,--,hive,base,import,table,com
From: https://www.cnblogs.com/chong-zuo3322/p/17025839.html

相关文章

  • How Liquibase Finds Files: Liquibase Search Path
    https://docs.liquibase.com/concepts/changelogs/how-liquibase-finds-files.html Forexample,ifyourreferencedfilepathis project1/db.changelog.xml andy......
  • 析构函数 和 构造函数 和 base使用
    classA//基类First{~A()//析构函数{Console.WriteLine("~A()析构函数");}publicA(){......
  • The Conventional CNN-based Method
    Tobespecific,givenanaudioclip,thetwo-dimensionaltime-frequencyrepresentation(e.g.Log-Mel)isfirstextracted.Convolutionallayersarethenapplied......
  • python3 The owner of this website (future.com) has banned your access based on y
     打开网站出现“Theownerofthiswebsite(future.com)hasbannedyouraccessbasedonyourbrowser'ssignature(784)“ 在翻译一下:本网站(future.com)的所有者已......
  • NC25064 [USACO 2007 Mar G]Ranking the Cows
    题目链接题目题目描述EachofFarmerJohn'sNcows(1≤N≤1,000)producesmilkatadifferentpositiverate,andFJwouldliketoorderhiscowsaccording......
  • Thread Hijacking注入
    通过线程劫持,注入远程进程1、通过PID打开目标进程,并申请一段空间,写入shellcode2、拍摄快照,遍历进程,打开ID3、挂起该进程,保存线程变量,设置上下文为我们希望执行的Shellco......
  • C# Base64 编解码字符串
    【案例描述】本案例主要介绍对字符串进行Base64编码的方法。Base64编码是常用的传输字节的一种编码方式,在HTTP环境下可以传递较长的标识信息,由于Base64编码不具备......
  • base64编码和解码
    引言:最近做爬虫的时候,解析对方网站中自定义字体时遇到的base64解码问题,对这个一直不理解,今天学习一下,总结一下。base64Base64是一种任意二进制到文本字符串的编码方法,基于64......
  • KingbaseES在线wal日志
    KingbaseES数据库日志文件记录数据库的历史操作信息,包含恢复数据库中的所有事务所需的信息。KingbaseES在线WAL日志:WAL日志:预写式日志(Write-AheadLogging(WAL)是保......
  • Install dameng database
    title:InstalldamengdatabaseInstallbydockerdockerrun-d-p5236:5236--restart=always--namedm8_01--privileged=true-eCASE_SENSITIVE=N-eUNICODE_F......