- 博客(41)
- 资源 (1)
- 收藏
- 关注
原创 ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.1.108' (111)
ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.1.108' (111)
2020-05-02 19:49:51
975
原创 hadoop put: Permission denied: user=zhdan, access=WRITE, inode="/":hdfs:supergroup:drwxr-xr-x
hadoop put: Permission denied: user=zhdan, access=WRITE, inode="/":hdfs:supergroup:drwxr-xr-x
2020-02-05 15:49:49
957
原创 CDH6.3添加flink服务
准备工作到 https://archive.cloudera.com/csa/1.0.0.0/csd/,https://archive.cloudera.com/csa/1.0.0.0/parcels/下载相应的csd文件和parcels文件到本地。FLINK-1.9.0-csa1.0.0.0-cdh6.3.0.jarFLINK-1.9.0-csa1.0.0.0-cdh6.3.0-bioni...
2020-02-02 22:17:36
6861
6
原创 Ubuntu输入正确密码,点击登陆后又跳回登陆界面
今天升级了Ubuntu到16版本,界面输入正确密码后,屏幕一闪却又跳回登陆页面。百度后找到解决办法。原因:主目录下.Xauthority文件拥有者变成了root,而以用户登陆(比如user用户)时无法读取.Xauthority文件说明:Xauthority是startx脚本记录文件。解决办法:按下shift+ctrl+F1跳到tty命令终端,修改X.authority文件拥有者为user...
2020-01-09 14:01:36
2452
原创 ubuntu设置sudo免密
这里使用的是没有Desk的ubuntu。#step1 sudo vim /etc/sudoers#step2 修改%sudo那一行为:%sudo ALL=(ALL:ALL) NOPASSWD: ALL#step3 保存退出#step4 reboot带有Desk还需要新增需要免密sudo的用户为:user ALL=(ALL:ALL) NOPASSWD: ALL...
2019-12-01 17:02:41
1236
原创 docker国内镜像库
\docker.exe: Error response from daemon: Get https://registry-1.docker.io/v2
2019-11-17 14:16:44
517
原创 win10上修改docker镜像存储位置
安装win for docker时发现似乎只能安装在C盘,可能pull 镜像时会存在C盘,那C盘空间会越来越小。怎么修改镜像默认的安装路径?原因分析:windows上安装的docker其实本质上还是借助与windows平台的hyper-v技术来创建一个linux虚拟机,你执行的所有命令其实都是在这个虚拟机里执行的,所以所有pull到本地的image都会在虚拟机的Virtual hard dis...
2019-11-17 13:55:47
3286
原创 flink sql脚本
flink sql client不支持CREATE TABLE的DDL语句,Table api是支持的。可以自己写一个提交sql的jar包运行flink作业
2019-10-23 16:57:57
2244
2
原创 NoMatchingTableFactoryException
org.apache.flink.table.api.NoMatchingTableFactoryException: Could not find a suitable table factory for 'org.apache.flink.table.factories.TableSourceFactory' inthe classpath.
2019-10-22 12:08:34
3869
7
转载 IDEA安装阿里代码规范插件
https://blog.youkuaiyun.com/weixin_39220472/article/details/80077803
2019-08-16 15:53:03
139
原创 NLTK安装
1、安装nltk、numpy pip install nltk pip install numpy2、进入pythonimport nltknltk.download()然后选择d,之后输入all开始下载nltk语料库(下载巨慢):4、验证nltkfrom nltk.corpus import brownwords = brown.words()print(words...
2019-07-08 15:44:28
353
原创 scrapy动态user-agent
scrapy默认的user-agent类似:User-Agent: b'Scrapy/1.6.0 (+https://scrapy.org)'一般会自己设置动态user-agent,预防被反爬。步骤:1、修改setting.pyUSER_AGENTS = [ 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHT...
2019-07-04 11:22:41
1211
1
原创 Permissions 0664 for 'mykeypair.pem' are too open.
运行ssh -i mykeypair.pem user@ip 时遇到:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: UNPROTECTED PRIVATE KEY FILE! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
2019-07-02 10:02:23
2335
1
原创 scrapy爬取亚马逊商品评论
这一篇使用scrapy爬虫框架实现亚马逊商品评论的抓取。1、创建一个爬虫项目:scrapy startproject MySpiderTest2、item.py中定义数据item:import scrapyfrom scrapy.item import Field, Itemclass ItcastItem(Item): # define the fields for you...
2019-07-01 10:50:30
3607
1
flink-1.10.0-bin-scala_2.11.tgz
2020-05-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人