This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# =============================================================== | |
# | |
# @Create Author : bluesmilery | |
# @Create Time : 2019/11/25 15:51 | |
# @Description : S3客户端 | |
# | |
# =============================================================== | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 删除release(使用helm list -a还能看到) | |
helm delete xxx | |
# 彻底删除release | |
helm delete --purge xxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Used to create a Anaconda virtual environment for CUDA and TensorFlow. | |
# If you want to use this shell script, please read the blog. | |
# https://bluesmilery.github.io/blogs/a687003b/ | |
echo "" | |
echo "This script is used to create a Anaconda virtual environment for CUDA and TensorFlow." | |
echo "" | |
read -p "Enter the name of Anaconda virtual environment: " ENV_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 启动docker daemon | |
service docker start | |
# 重启docker daemon | |
service docker restart | |
# 搜索远程库中的镜像 | |
docker search xxx | |
# 下载镜像 | |
docker pull xxx | |
# 上传镜像 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 组合开启spark历史日志可在spark ui中查看 | |
spark.eventLog.enabled true | |
spark.eventLog.dir hdfs://nn-cluster/user/strategy/sparklog1.6 | |
spark.history.fs.logDirectory hdfs://nn-cluster/user/strategy/sparklog1.6 | |
spark.history.fs.cleaner.enabled true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 表名为TA | |
# 克隆表,不带数据 | |
create table TA_like like TA | |
# 将本地文件导入表中 | |
load data local inpath '/local/path' into table TA; | |
# 查看建表语句 | |
show create table TA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 取消高亮 | |
:noh | |
# 显示行号 | |
:set nu | |
# 复制模式 | |
:set paste | |
# 显示分隔符等特殊符号 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 获取当前系统时间 | |
date "+%Y-%m-%d %H:%M:%S" | |
# 查看CentOS系统版本 | |
cat /etc/redhat-release | |
# 查看Linux系统版本(更通用) | |
cat /etc/issue | |
# 查看内核版本 |