Shell脚本使用
| 1 | sh clean_hdfs_logs.sh [hdfs_user] | 
Shell脚本
cat clean_hdfs_logs.sh
| 1 | !/bin/bash | 
- 本文作者: GaryWu
- 本文链接: https://garywu520.github.io/2019/07/15/shell删除HDFS几天前的数据/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!
 
      
      
      | 1 | sh clean_hdfs_logs.sh [hdfs_user] | 
cat clean_hdfs_logs.sh
| 1 | #!/bin/bash | 
tag:
            缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia-plus根目录)执行以下命令:
 npm i hexo-generator-json-content --save
            3、在根目录_config.yml里添加配置:
  jsonContent:
    meta: false
    pages: false
    posts:
      title: true
      date: true
      path: true
      text: false
      raw: false
      content: false
      slug: false
      updated: false
      comments: false
      link: false
      permalink: false
      excerpt: false
      categories: false
      tags: true
          
          
