上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: 1.创建npm仓库 私服仓库npm-hosted 代理仓库npm-proxy npm-group 创建成功 在工程的根目录下创建文件 .npmrc 然后安装react 或者 仓库上将会下载这个npm包 阅读全文
posted @ 2019-10-18 14:00 tonglin0325 阅读(4577) 评论(0) 推荐(0) 编辑
摘要: 1.比如说我要将127.0.0.1/topics上的所有请求转发到xxx:xxx/上 修改 sudo vim /etc/nginx/nginx.conf 阅读全文
posted @ 2019-10-16 15:43 tonglin0325 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 该图转自知乎 海棠依旧 1.先生成p12文件,生成的时候需要指定密码 openssl pkcs12 -export -in your_crt.crt -inkey your_key.key -out your_p12.p12 2.再生成keystore文件 keytool -importkeysto 阅读全文
posted @ 2019-10-14 17:09 tonglin0325 阅读(5305) 评论(0) 推荐(0) 编辑
摘要: 1.配置filebeat_nginx.yml filebeat.modules: - module: nginx access: enabled: true var.paths: ["/var/log/nginx/access.log*"] error: enabled: true var.path 阅读全文
posted @ 2019-10-14 11:15 tonglin0325 阅读(2586) 评论(0) 推荐(0) 编辑
摘要: 1.安装nginx,注意不要安装nginx-full sudo apt-get install nginx sudo apt-get install nginx-common sudo apt-get install nginx-extras 确认版本 apt list --installed | 阅读全文
posted @ 2019-10-13 22:58 tonglin0325 阅读(2262) 评论(0) 推荐(0) 编辑
摘要: 1.修改配置,在http{}中添加 2.重启 或者 3.访问,输出日志 日志中变量的含义 比如 参考 参数含义 1.访问时间 ts2.访问端口 server_addr3.请求方式(GET或者POST等)request4.用户浏览器语言。如:上例中的 "es-ES,es;q=0.8" http_acc 阅读全文
posted @ 2019-10-12 18:44 tonglin0325 阅读(3406) 评论(0) 推荐(0) 编辑
摘要: 1.编辑配置文件 在http {}中添加如下 2.重启nginx 3.访问,成功 4.访问日志 阅读全文
posted @ 2019-10-12 18:32 tonglin0325 阅读(1581) 评论(0) 推荐(0) 编辑
摘要: 1.安装 sudo apt-get install nginx 2.启动 systemctl start nginx.service 如果和apache2的80端口冲突了,修改一下apache2的port sudo vim /etc/apache2/ports.conf 冲突的话,日志/var/lo 阅读全文
posted @ 2019-10-12 16:48 tonglin0325 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 参考 1.首先创建pypi仓库 其中,PyPI类的服务,支持三种: proxy,提供代理服务 hosted,提供私有包的发布服务 group,组合以上两类的多个服务到一起,通过同一个URL对外提供 首先创建pypi-proxy,指定remote storage为阿里云 创建pypi-hosted 创 阅读全文
posted @ 2019-09-30 19:25 tonglin0325 阅读(1990) 评论(0) 推荐(0) 编辑
摘要: Hive是如何解析SQL的呢,首先拿hive的建表语句来举例,比如下面的建表语句 create table test(id int,name string)row format delimited fields terminated by '\t'; 然后使用hive的show create tab 阅读全文
posted @ 2019-09-15 17:23 tonglin0325 阅读(2625) 评论(0) 推荐(1) 编辑
摘要: 安装 sudo apt-get install supervisor 启动,否则会报 unix:///tmp/supervisor.sock no such file service supervisor start 或者 supervisord -c /etc/supervisor/supervi 阅读全文
posted @ 2019-09-07 23:38 tonglin0325 阅读(1254) 评论(0) 推荐(0) 编辑
摘要: Hive结构体系 https://blog.csdn.net/zhoudaxia/article/details/8855937 依赖 <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artif 阅读全文
posted @ 2019-09-03 11:23 tonglin0325 阅读(3920) 评论(0) 推荐(0) 编辑
摘要: Filebeat官方文档地址 https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation.html 下载和安装 curl -L -O https://artifacts.elastic.co/downloa 阅读全文
posted @ 2019-08-27 20:02 tonglin0325 阅读(1807) 评论(1) 推荐(0) 编辑
摘要: 1.下载安装包 https://www.consul.io/downloads.html wget https://releases.hashicorp.com/consul/1.5.3/consul_1.5.3_linux_amd64.zip 2.解压 unzip consul_1.5.3_lin 阅读全文
posted @ 2019-08-10 23:28 tonglin0325 阅读(3029) 评论(0) 推荐(0) 编辑
摘要: 1.Kerberos介绍 Kerberos是一种计算机网络授权协议,用来在非安全网络中,对个人通信以安全的手段进行身份认证。这个词又指麻省理工学院为这个协议开发的一套计算机软件。软件设计上采用客户端/服务器结构,并且能够进行相互认证,即客户端和服务器端均可对对方进行身份认证。可以用于防止窃听、防止重 阅读全文
posted @ 2019-08-05 15:52 tonglin0325 阅读(696) 评论(0) 推荐(0) 编辑
摘要: 在终端中执行即可 在终端无法复制问题 阅读全文
posted @ 2019-07-23 16:46 tonglin0325 阅读(7654) 评论(0) 推荐(0) 编辑
摘要: 1.安装impyla pip install impyla 2.在superset页面配置如下,此时impala是有kerberos认证的 impala://xxxx:xx/default?auth_mechanism=GSSAPI&kerberos_service_name=impala 如果遇到 阅读全文
posted @ 2019-07-17 14:45 tonglin0325 阅读(2063) 评论(2) 推荐(0) 编辑
摘要: 1.只执行单个任务 将downstream和recursive按钮的点击状态取消,然后点击clear,最后选择Ignore All Deps,然后点击run 2.从一个任务开始,执行它以及它的下游任务 将downstream和recursive按钮的点击状态取消,然后点击clear,最后选择Igno 阅读全文
posted @ 2019-07-17 10:08 tonglin0325 阅读(2003) 评论(0) 推荐(0) 编辑
摘要: 1.在uri中配置 hive://localhost:10000/default 2.查询 3.如果你的hive集群是带有kerberos认证的,hive数据源需要这样配置 hive://xxx:xxx/default?auth=KERBEROS&kerberos_service_name=hive 阅读全文
posted @ 2019-07-16 15:20 tonglin0325 阅读(6293) 评论(4) 推荐(0) 编辑
摘要: 1.添加mysql数据源 测试连接的时候遇到 安装mysqlclient 如果遇到 安装 添加mysql的url 测试ok 阅读全文
posted @ 2019-07-16 12:41 tonglin0325 阅读(6324) 评论(0) 推荐(0) 编辑
摘要: Superset 是Airbnb 开源的大数据可视化平台 其支持的datasource https://superset.incubator.apache.org/index.html?highlight=datasource 类似的开源项目Zeppelin所支持的datasource https: 阅读全文
posted @ 2019-07-15 17:00 tonglin0325 阅读(1585) 评论(0) 推荐(0) 编辑
摘要: 1.查看hdfs文件的block信息 不正常的文件 hdfs fsck /logs/xxx/xxxx.gz.gz -files -blocks -locations Connecting to namenode via http://xxx-01:50070/fsck?ugi=xxx&files=1 阅读全文
posted @ 2019-07-15 11:51 tonglin0325 阅读(360) 评论(0) 推荐(0) 编辑
摘要: CDH安装官方参考文档: https://www.cloudera.com/documentation/enterprise/5-16-x/topics/configure_cm_repo.html 如果是在生产环境进行安装,建议查看cloudera官方提供的机型建议 https://docs.cl 阅读全文
posted @ 2019-07-07 10:20 tonglin0325 阅读(2842) 评论(0) 推荐(0) 编辑
摘要: 1.安装的docker版本 docker -v Docker version 17.03.2-ce 2.查看本地的镜像 docker images 3.拉取镜像 docker pull centos:7 4.编写Dockerfile FROM nginx RUN echo '<h1>Hello, D 阅读全文
posted @ 2019-04-01 14:09 tonglin0325 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 在编译thrift文件的时候发现报了如下的错误 后来查了一下,发现class是thrift的关键字之一,变量起名的时候不能和关键字重复 thrift的全部关键字可以查看thrift的源码 搜索keywords,下面这些都是thrift关键字,在起名的时候需要注意 以及 关键字 阅读全文
posted @ 2019-03-27 10:10 tonglin0325 阅读(1234) 评论(0) 推荐(0) 编辑
摘要: parquet是列式存储格式,官方文档 https://parquet.apache.org/documentation/latest/ 一个Parquet文件是由一个header以及一个或多个block块组成,以一个footer结尾。 header中只包含一个4个字节的数字PAR1用来识别整个Pa 阅读全文
posted @ 2019-01-09 15:33 tonglin0325 阅读(3714) 评论(0) 推荐(0) 编辑
摘要: ubuntu环境下安装thrift-0.10.0 1.解压 2.编译安装 ./configure -with-cpp -with-boost -without-python -without-csharp -with-java -without-erlang -without-perl -witho 阅读全文
posted @ 2018-12-28 13:37 tonglin0325 阅读(682) 评论(0) 推荐(0) 编辑
摘要: xxl-job是一个开源的分布式调度框架,其他类似的框架还有airflow,oozie等等,需要进行对比 1.首先git clone工程 打包工程,打包的过程中会下载所需要的jar包 2.在idea中打开工程 需要修改一下logback.xml和properties中日志路径,然后运行工程 3.初始 阅读全文
posted @ 2018-12-22 15:37 tonglin0325 阅读(5601) 评论(0) 推荐(0) 编辑
摘要: 1.创建索引,名字为index curl -XPUT http://localhost:9200/index 2.创建一个mapping curl -XPOST http://localhost:9200/index/fulltext/_mapping -H 'Content-Type:applic 阅读全文
posted @ 2018-12-10 10:22 tonglin0325 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1.测试Elasticsearch的分词 Elasticsearch有多种分词器(参考:https://www.jianshu.com/p/d57935ba514b) Set the shape to semi-transparent by calling set_trans(5) (1)stand 阅读全文
posted @ 2018-12-08 16:11 tonglin0325 阅读(554) 评论(0) 推荐(1) 编辑
摘要: 简介:antlr工具将语法文件转换成可以识别该语法文件所描述的语言的程序. 例如:给定一个识别json的语法,antlr工具将会根据该语法生成一个程序,该程序可以通过antlr运行库来识别输入的json. 1.下载jar包,antlr-4.7.1-complete.jar http://www.an 阅读全文
posted @ 2018-11-02 15:21 tonglin0325 阅读(2329) 评论(0) 推荐(0) 编辑
摘要: 使用flink来读写hudi有2种API,一个是Flink SQL API,另一个是DataStream API,参考 https://hudi.apache.org/cn/docs/flink-quick-start-guide 1.Flink SQL API 首先启动yarn session / 阅读全文
posted @ 2018-09-25 16:31 tonglin0325 阅读(351) 评论(0) 推荐(0) 编辑
摘要: elephant-bird是Twitter的开源项目,项目的地址为 https://github.com/twitter/elephant-bird 该项目是Twitter为LZO,thrift,protocol buffer相关的hadoop InputFormats, OutputFormats 阅读全文
posted @ 2018-09-12 19:06 tonglin0325 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 下面介绍几种go的包管理工具,推荐使用go mod 1.go mod 参考:go学习笔记——引入依赖 2.Glide 参考:golang 依赖管理 /etc/profile #Go export GOROOT=/home/lintong/software/go export PATH=$PATH:$ 阅读全文
posted @ 2018-06-07 23:58 tonglin0325 阅读(3243) 评论(0) 推荐(0) 编辑
摘要: Ansible是一个批量部署的工具 参考:Ansible中文权威指南 1.安装 sudo apt-get install software-properties-common sudo apt-add-repository ppa:ansible/ansible sudo apt-get updat 阅读全文
posted @ 2018-05-23 00:39 tonglin0325 阅读(794) 评论(1) 推荐(1) 编辑
摘要: Logstash 是开源的服务器端数据处理管道,能够同时 从多个来源采集数据、转换数据,然后将数据发送到您最喜欢的 “存储库” 中。(我们的存储库当然是 Elasticsearch。) 作用:集中、转换和存储数据 官方网站: https://www.elastic.co/cn/products/lo 阅读全文
posted @ 2018-05-16 10:33 tonglin0325 阅读(11673) 评论(1) 推荐(1) 编辑
摘要: 1.下载nexus 2.解压,会出现两个目录,nexus-2.11.2-03是服务 sonatype-work是私有库目录 3.修改配置,在nexus-2.11.2-03/bin目录下修改nexus文件 4.修改端口,nexus-2.11.2-03/conf修改nexus.properties文件 阅读全文
posted @ 2018-05-13 00:29 tonglin0325 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 1.首先查看机器是否使用的是MegaRAID卡 2.添加 megaraid 源: 修改 /etc/apt/sources.list 在末尾添加 然后执行: 如果执行提示 GPG 错误,需要执行如下命令添加证书: 然后再次执行: 3.使用megacli命令进行一些简单的查询 <i>显示所有RAID级别 阅读全文
posted @ 2018-05-07 15:43 tonglin0325 阅读(1818) 评论(0) 推荐(1) 编辑
摘要: 参考:完全用 GNU/Linux 工作 - 29. 檢測硬碟 S.M.A.R.T. 健康狀態 1.安装 2.查看硬盘的参数,需要获得Root权限 3.如果使用下面的Python脚本来调用该命令的时候,是需要获得Root权限的 可以使用下面的方法来实现免输入密码,使用 sudo visudo 命令对/ 阅读全文
posted @ 2018-05-07 10:16 tonglin0325 阅读(1192) 评论(0) 推荐(0) 编辑
摘要: 1.首先下载Kibana 2.解压 3.修改配置,在config文件夹下面修改kibana.yml 4.启动 5.访问web 6.在Manager里面添加index,demo中的index名称叫做es 添加之后 7.在discover中可以查看数据,里面还会对top数据进行统计 8.在Dev too 阅读全文
posted @ 2018-05-06 22:36 tonglin0325 阅读(638) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页