Skip to content

Instantly share code, notes, and snippets.

View hallkk's full-sized avatar

高岩 hallkk

  • 22:19 (UTC +08:00)
View GitHub Profile
@hallkk
hallkk / supervisord.service
Created October 30, 2018 10:47 — forked from mozillazg/supervisord.service
install and configure supervisord on centos 7.
[Unit]
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]
Type=forking
ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf
ExecReload=/bin/supervisorctl reload
ExecStop=/bin/supervisorctl shutdown
@hallkk
hallkk / add_tsinghua_channel_of_anaconda.md
Last active January 18, 2017 10:08
添加清华Anaconda仓库镜像
@hallkk
hallkk / install_git_centos.sh
Last active April 16, 2019 12:25
centos下编译安装git客户端
# 删除旧版本
yum remove git -y
# 安装依赖
yum install gcc -y
yum install curl-devel -y
yum install openssl-devel -y
yum install expat-devel -y
# 下载,解压
@hallkk
hallkk / UDTFSample.java
Last active November 10, 2016 07:25
hive UDTF样例,将列转化为多行
/**
编写自己的UDTF:
1.继承org.apache.Hadoop.hive.ql.udf.generic.GenericUDTF。
2.实现initialize(),process(),close()三个方法。
3.UDTF首先会调用initialize()方法,此方法返回UDTF的返回行的信息(返回个数,类型)。
4.初始化完成后会调用process()方法,对传入的参数进行处理,可以通过forward()方法把结果返回。
5.最后调用close()对需要清理的方法进行清理。
**/
@Description(name = "convert_nplus_freq",
@hallkk
hallkk / CheckToken.java
Created August 20, 2016 14:57 — forked from jarod-chan/CheckToken.java
spring aop 处理重复提交
package cn.fyg.pa.interfaces.module.shared.token.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*校验token是否有效