摘要: https://blog.csdn.net/qq_41874235/article/details/110090499 出现这个问题:Unknown lifecycle phase ".oracle". 所有值加引号就可以 mvn install:install-file -DgroupId="co 阅读全文
posted @ 2021-10-28 13:38 堕落先锋 阅读(110) 评论(0) 推荐(1) 编辑
摘要: 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 堕落先锋 阅读(264) 评论(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 堕落先锋 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 方式一 /** 将配置文件中配置的每一个属性的值,映射到这个组件中 @ConfigurationProperties:告诉SpringBoot将本类中的所有属性和配置文件中相关的配置进行绑定; prefix = "person":配置文件中哪个下面的所有属性进行一一映射 只有这个组件是容器中的组件, 阅读全文
posted @ 2021-08-09 17:16 堕落先锋 阅读(826) 评论(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 堕落先锋 阅读(82) 评论(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 堕落先锋 阅读(283) 评论(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 堕落先锋 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 如果报错是ORA-12154: TNS:could not resolve the connect identifier specified考虑数据库实例没有启动 1、直接在登录时输入数据库信息 ip:端口/数据库名 如果可以正常登录了,配置一下环境变量 新建环境变量 1、变量名为:ORACLE_H 阅读全文
posted @ 2020-11-04 14:01 堕落先锋 阅读(1984) 评论(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 堕落先锋 阅读(626) 评论(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 堕落先锋 阅读(2499) 评论(0) 推荐(0) 编辑