zoukankan      html  css  js  c++  java
  • Hadoop集群上用户使用crontab时候失败

    在Linux上,用户需要crontab启动定时任务,但是出现以下报错:

    $ crontab -l
    You (hadoop) are not allowed to access to (crontab) because of pam configuration.

    原因:用户hadoop的密码过期了。

    如果是非集群状态登录,会让你立即修改密码,但是如果是集群状态的账号的话,由于设置了免密码登录,密码不能过期。

    用root用户执行 

    # chage -l hadoop
    Last password change                                    : Nov 23, 2015
    Password expires                                        : Feb 21, 2016
    Password inactive                                       : never
    Account expires                                         : never
    Minimum number of days between password change          : 0
    Maximum number of days between password change          : 90
    Number of days of warning before password expires       : 7

    从上述可以知,密码每90天就需要修改一次,密码到期前7天会收到警告。当时由于Hadoop集群状态,不会让你修改密码,所以解决方式,把密码设置为永久有效就可以解决。

    #chage -M 99999 hadoop
    #chage -l hadoop
    Last password change                                    : Nov 23, 2015
    Password expires                                        : never
    Password inactive                                       : never
    Account expires                                         : never
    Minimum number of days between password change          : 0
    Maximum number of days between password change          : 99999
    Number of days of warning before password expires       : 7

      

  • 相关阅读:
    磁共振中的T1, T2 和 T2*的原理和区别
    Revolver Maps-3D地球仪网站定制
    4种常见网络
    De Moivre–Laplace theorem
    The Complex Inversion Formula. Bromwich contour.
    理解全概率公式与贝叶斯公式(转)
    滴滴数据
    ccs 分类
    dialog problem overview
    recommendation baselines
  • 原文地址:https://www.cnblogs.com/GuixinChan/p/13360996.html
Copyright © 2011-2022 走看看