摘要:
select DATE_FORMAT(SUBDATE(NOW(),interval sntable.sn day),'%Y-%m-%d') as statDatefrom (SELECT 0 as sn UNION SELECT 1 as sn UNION SELECT 2 UNION SELECT 阅读全文
摘要:
select DATE_FORMAT(SUBDATE(NOW(),interval sntable.sn day),'%Y-%m-%d') as statDatefrom (SELECT 0 as sn UNION SELECT 1 as sn UNION SELECT 2 UNION SELECT 阅读全文
摘要:
前提:集群中机器都配了互信 1、多机拷贝文件到目标机器(其中hadoop01~20为目标机器hostname或ip) 使用示例: sh sshc.sh /etc/profile 将/etc/profile拷贝所有机器 sshc.sh脚本 # !/bin/bash scp -r "$1" hadoop 阅读全文
摘要:
1. kinit 某个账户,提示 Clients credentials have been revoked 人机账户输入错误密码次数过多账号被锁的解决方法 1)先判断是否存在账户被锁。 输入kinit 用户名。如果包含如下提示: kinit: Clients credentials have be 阅读全文
摘要:
Spring boot启动报“APPLICATION FAILED TO START”错误:DiskSpaceHealthIndicatorAutoConfiguration required a single bean, but 2 were found 具体报错日志如下: 2020-04-21 阅读全文
摘要:
hadoop jar hadoop-streaming-2.6.4.jar \ -D mapreduce.job.name='test' \ -files /local/path/to/mapper.py,/local/path/to/reducer.py -input /test/data/* - 阅读全文
摘要:
Shell中ftp文件上传下载脚本(判断ftp目录是否存在) - 文件下载 function get_ftp_data() { ftp_dir=$1 local_dir=$2 ftp -n<<! open ${FTP_HOST} user ${FTP_USERNAME} ${FTP_PASSWORD 阅读全文
摘要:
1.查询所有索引: curl - XGET http://127.0.0.1:9200/_cat/indices?v 2.删除索引 curl - XDELETE http://dv7:9200/corp-data-v5 3.获取mapping GET http: //dv7:9200/corp-data/_mapping/corp-type 4.别名 POST http: //dv7:9... 阅读全文
摘要:
参考:https://www.zhihu.com/question/21653286 1.使用启动器py.exe py -2 使用python2,如: py -2 hello.py py -3 使用python3,如: py -3 hello.py 2. 指定文件由python2解释运行,还是由py 阅读全文
摘要:
nohup bin/logstash -f config/news_ai_result.conf > news_ai_result.log & -------------------------------------------------------------------------------------------------------- [2018-08-15 15:56:54 ... 阅读全文
摘要:
# coding: utf-8 import datetime import urllib.parse import urllib.request from urllib.error import * from bs4 import BeautifulSoup import re import os def get_html(url, values): html = '' ... 阅读全文
|