摘要: CREATE TABLE test1 ( no bigint, tm bigint, val string --p_date string COMMENT 'partition date, yyyyMMdd' ) partitioned by(p_date string COMMENT 'parti 阅读全文
posted @ 2021-09-06 11:23 小人物LOWER 阅读(307) 评论(0) 推荐(0)
摘要: Exception in thread "main" java.lang.ExceptionInInitializerError at szq.main.hbasetohive.HBaseReadTest.main(HBaseReadTest.scala) at sun.reflect.Native 阅读全文
posted @ 2021-08-11 11:16 小人物LOWER 阅读(192) 评论(0) 推荐(0)
摘要: 方式一 /** 将配置文件中配置的每一个属性的值,映射到这个组件中 @ConfigurationProperties:告诉SpringBoot将本类中的所有属性和配置文件中相关的配置进行绑定; prefix = "person":配置文件中哪个下面的所有属性进行一一映射 只有这个组件是容器中的组件, 阅读全文
posted @ 2021-08-09 17:16 小人物LOWER 阅读(836) 评论(0) 推荐(0)
摘要: --hive笔记: select hex(17),unhex(11) from szq.ods_hbase_to_hive limit 2; --10进制转16进制 select bin(10),hex(18),unhex(11),round(3,14444),conv(14,10,16),abs( 阅读全文
posted @ 2021-07-27 14:36 小人物LOWER 阅读(104) 评论(0) 推荐(0)
摘要: 原文链接:https://blog.csdn.net/weixin_43832243/article/details/102746232 BinaryComparator bcf = new BinaryComparator("g".getBytes());//列名是g 开头的所有列 Qualifi 阅读全文
posted @ 2021-07-27 14:34 小人物LOWER 阅读(345) 评论(0) 推荐(0)
摘要: 1、使用了左外连接,如果根据你匹配的字段,匹配的话,就flag标志为1. db_list['flag'] = 1 exc_list['bomcount'] = exc_list['bomcount'].astype('float64')#首先保证列的数据类型一致。 #merge合并两个datafra 阅读全文
posted @ 2020-11-05 11:20 小人物LOWER 阅读(430) 评论(0) 推荐(0)
摘要: 如果报错是ORA-12154: TNS:could not resolve the connect identifier specified考虑数据库实例没有启动 1、直接在登录时输入数据库信息 ip:端口/数据库名 如果可以正常登录了,配置一下环境变量 新建环境变量 1、变量名为:ORACLE_H 阅读全文
posted @ 2020-11-04 14:01 小人物LOWER 阅读(2505) 评论(0) 推荐(1)
摘要: python初学者,方便下次使用的 def insert_oracle(): con = cx_Oracle.connect('test/123456@IP/test', encoding='utf-8') data = pd.read_excel('D:\\path.excel') #对数据进行处 阅读全文
posted @ 2020-06-18 16:48 小人物LOWER 阅读(660) 评论(0) 推荐(0)
摘要: import cx_Oracle import pandas as pd import random import numpy as np oracle数据库update时候不能使用%s做占位符 def update_oracle(): conn = cx_Oracle.connect('test/ 阅读全文
posted @ 2020-06-18 14:33 小人物LOWER 阅读(2586) 评论(0) 推荐(0)
摘要: <div> <ul id="permissionTree" class="ztree"></ul> </div> <script src="${APP_PATH}/ztree/jquery.ztree.all-3.5.min.js"></script> <script type="text/java 阅读全文
posted @ 2020-06-04 17:08 小人物LOWER 阅读(106) 评论(0) 推荐(0)