摘要:
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... 阅读全文
摘要:
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 = '' ... 阅读全文
摘要:
#!/bin/sh while true; do #启动一个循环,定时检查进程是否存在 server=`ps aux | grep /opt/mongodb | grep -v grep` if [ ! "$server" ]; then echo `date "+%Y-%m-%d %H:%M:%S"` service restart #如果不存在就重新启动 nohup bin/mongod -- 阅读全文
摘要:
#!/usr/bin/env python # coding=utf-8 # gitlab源码备份 import os import datetime import requests class GitlabBackup: def backup_projects(self): url = 'http://xxx.xxx.xxx.xxx/api/v3/projects/all?page=1&per_ 阅读全文
摘要:
import java.awt.image.BufferedImage; import java.awt.image.RenderedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; public class ImageWithArray { public static voi 阅读全文
摘要:
elasticsearch命令: 显示所有索引: curl http://dv7:9200/_cat/indices?v 查询:curl http://dv7:9200/corp-base/_search?q=* 删除索引:curl -XDELETE http://dv7:9200/corp-bas 阅读全文
摘要:
### impyla-0.14.2.2安装注意事项+ 环境 - Red Hat Enterprise Linux Server release 6.8 (Santiango) - Python3.7.3 + impyla-0.14.2.2依赖包 - yum install -y python-dev 阅读全文
摘要:
## 系统环境- Red Hat Enterprise Linux Server release 6.8 (Santiago)- Python2.6.6- openssl version 1.0.1 ## 一、安装gccyum -y install gcc gcc-c++ ## 二、安装python 阅读全文
摘要:
一、TestDFSIO 读写性能测试切换到目录: /opt/hadoop/share/hadoop/mapreduce/ 清空数据hadoop jar hadoop-mapreduce-client-jobclient-2.6.4.jar -cleanhadoop fs -ls /benchmark 阅读全文
|