2019年10月31日
摘要: 本安装依赖Haddop2.8安装 https://www.cnblogs.com/xibuhaohao/p/11772031.html 一、下载Hive与MySQL jdbc 连接驱动 apache-hive-2.3.6-bin.tar.gz 官方网站 mysql-connector-java-5. 阅读全文
posted @ 2019-10-31 17:16 xibuhaohao 阅读(3276) 评论(0) 推荐(0) 编辑
摘要: 格式化namenode时报错警告:WARN common.Util: Path /data/dfs/name should be specified as a URI in configuration 一、问题分析 在执行hadoop namenode格式化命令:bin/hadoop namenod 阅读全文
posted @ 2019-10-31 16:56 xibuhaohao 阅读(1726) 评论(0) 推荐(0) 编辑
摘要: 1、本脚本为服务器用户间密码互信登录脚本 2、依赖 需要安装expect工具 3、使用 sh CreateUserssh.sh hadoop hadoop /home/hadoop/.ssh 三个带入参数 1)用户名 2)密码 3)用户ssh密钥路径 4、脚本内容 #!/bin/bash####脚本 阅读全文
posted @ 2019-10-31 16:33 xibuhaohao 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 一、下载Hadoop与java jdk-8u221-linux-x64.tar.gz Oracle官网下载 hadoop-2.8.5.tar.gz Hadoop官网下载 二、配置服务期间ssh免密互通 使用如下互信安装脚本 https://www.cnblogs.com/xibuhaohao/p/1 阅读全文
posted @ 2019-10-31 16:32 xibuhaohao 阅读(544) 评论(0) 推荐(0) 编辑
摘要: --Oracle trunc()函数的用法/**************日期********************/1.select trunc(sysdate) from dual --2013-01-06 今天的日期为2013-01-062.select trunc(sysdate, 'mm' 阅读全文
posted @ 2019-10-31 11:08 xibuhaohao 阅读(896) 评论(0) 推荐(0) 编辑
摘要: 简要比较: replace 字符串级别的代替 如:SELECT REPLACE('accd','cd','ef') from dual; --> aefd translate 字符级别的代替 如:select translate('acdd','cd','ef') from dual; -->aef 阅读全文
posted @ 2019-10-31 10:11 xibuhaohao 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1、substr函数格式 (俗称:字符截取函数) 格式1: substr(string string, int a, int b); 格式2:substr(string string, int a) ; 解释: 格式1: 1、string 需要截取的字符串 2、a 截取字符串的开始位置(注:当a等于 阅读全文
posted @ 2019-10-31 10:06 xibuhaohao 阅读(2349) 评论(0) 推荐(0) 编辑
摘要: instr()函数的格式 (俗称:字符查找函数) 格式一:instr( string1, string2 ) / instr(源字符串, 目标字符串) 格式二:instr( string1, string2 [, start_position [, nth_appearance ] ] ) / in 阅读全文
posted @ 2019-10-31 09:54 xibuhaohao 阅读(1188) 评论(0) 推荐(0) 编辑
摘要: 触发器无需commit也不能写commit触发器和触发它的DML是同一个事务DML提交了,触发器的操作也提交了,要不就一起回滚了当然,如果你一定要在触发器里写COMMIT那就用自治事务相当于一个事务里的子事务 正常情况下,Oracle规定在触发器中不能运行 ddl语句和commit,rollback 阅读全文
posted @ 2019-10-31 09:52 xibuhaohao 阅读(859) 评论(0) 推荐(0) 编辑