tongjun_zhou的博客
tongjun_zhou · 共 22 篇文章
快速创建git 仓库
Quick setup — if you've done this kind of thing before via HTTP Create a new repository from the command line touch README.md git init git add README.md git commit -m "first commit" git remote add origin http://localhost:8080/git/root/aaa.git git push -u origin master Push an existing repository fr…
2018-08-31 15:56 · 评论(0)
工作流表删除顺序
drop table act_evt_log; drop table act_hi_actinst; drop table act_hi_attachment; drop table act_hi_comment; drop table act_hi_detail; drop table act_hi_identitylink; drop table act_hi_procinst; drop table act_hi_taskinst; drop table act_hi_varinst; drop table act_id_info; drop table act_id_membersh…
2018-06-14 10:01 · 评论(0)
idea 巨坑
intellij idea 省电模式 会造成关键字不高亮,错误代码不提示等等。 解决: 点击idea 的file 再次点击power save mode 禁用
2017-08-24 21:20 · i · 评论(0)
liunx 常用命令
1、关键字: whereis 例如:whereis hive 则是找出hive 环境变量配置在哪。 2、$PATH 在shell 变量中,不能出现$PATH 定义,不然会将系统环境变量PATH 覆盖,导致其他命令找不到。 3、赋权 chmod +x xx.sh 4、shell 读取文件行数 $file_path =text.txt function read(){ while read LINE do echo $LINE done <$file_path }
2017-07-06 10:16 · 评论(0)
mysql 常用函数group_concat
mysql之group_concat函数详解 group_concat( 要连接的字段 ) 下面举例说明: select * from goods; +------+------+ | id| price| +------+------+ |1 | 10| |1 | 20| |1 | 20| |2 | 20| |3 | 200 | |3 | 500 | +------+------+ 6 rows in set (0.00 sec) 以id分组,把price字段的值在同一行打印出来,逗号分隔(默认) select id, group_concat(price) from goods grou…
2017-06-21 22:12 · 评论(0)
springboot 1.5.2 集成hive 报错。
Nicolas Fouché commented on HIVE-2935: Using CDH 4.1.2, which includes this patch. I think there's a problem with hive-jdbc which includes a JDBC driver for the two version of hiveserver. For the first version of hiveserver, hive-jdbc-0.9.0-cdh4.1.2 depends on libthrift-1.5.0, which defines org.apa…
2017-06-14 20:52 · 评论(0)
sqoop 数据导出,hive -->mysql
命令 导出: sqoop export --connect jdbc:mysql://localhost:3306/test --username root --password root --table test --export-dir '/user/hive/warehouse/test' --fields-terminated-by '\001' --input-null-string '\N' --input-null-non-string '\N' --input-lines-terminated-by '\n' -m 1 导入 mysql --》hdfs; sqoop impo…
2017-06-13 16:59 · 评论(0)
spring boot 1.5.2 读取配置文件
@Component @PropertySource("classpath:hive.properties")//与之前版本差异。 @ConfigurationProperties(prefix = "hive") public class HiveConfig { public String host; public String url; public String getHost() { return host; } public void setHost(String host) { this.host = host; } public String getUrl() { retur…
2017-06-09 16:13 · 评论(0)
Spring Security4.1.3
2017-06-07 21:20 · 评论(0)
前端react 发布到nginx
1、拷贝前端文件,去除node_modules。并打包root.zip 2、上传liunx 解压,定位到解压文件根目录。如root/ 3、安装,cnpm -install .完成。 4、配置nginx.conf . location / { root html;//可以是绝对路径 index index.html index.htm; try_files $uri /index.html; } 5、启动 nginx -c nginx.conf
2017-05-26 11:00 · js · 评论(0)
react
1、语法 onClick={this.handleOk} 与onClick={this.handleOk()} 后面加括号表示直接调用。 错误提示: Cannot update during an existing state transition (such as within render or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern but can …
2017-05-25 16:39 · react 遇到坑 · 评论(0)
struts2
Unable to load configuration. - bean - jar:file:/D:/javaProgramFiles/tomcat-6.0.20/webapps/zoyeo Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/D:/javaProgramFiles/tomcat-6.0.20/webapps/zoyeoa/WEB-INF/lib/struts2-core-2.1.2.jar!/struts-default.xml:46:178 at com.o…
2013-07-26 15:57 · JAVA · 评论(0)
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Config
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean name 'test' is already used in this file. ----把spring 中的nama 去掉就行了 报错: Caused by: javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider does not support X…
2013-01-22 15:10 · 评论(0)
JS table 取特定值
function iteratorTable(tablename){ var total=0; for(var i=1;i<tablename.rows.length;i++) { //取出第三列值的和 total+=parseFloat(tablename.rows*.cells.innerText) } alert(total); } function test(){ iteratorTable(document.getElementById("table")); }
2012-07-03 15:20 · js · 评论(0)