分类 "Docker" 下的文章

ERROR: Attempting to operate on yarn resourcemanager as root

ERROR: but there is no YARN_RESOURCEMANAGER_USER defined. Aborting operation.

Starting nodemanagers

ERROR: Attempting to operate on yarn nodemanager as root

ERROR: but there is no YARN_NODEMANAGER_USER defined. Aborting operation.

ERROR: Attempting to operate on hdfs namenode as root

ERROR: but there is no HDFS_NAMENODE_USER defined. Aborting operation.

Starting datanodes

ERROR: Attempting to operate on hdfs datanode as root

ERROR: but there is no HDFS_DATANODE_USER defined. Aborting operation.

阅读全文

一、 docker 服务启动启动

    # 开启 docker 自启动
    systemctl enable docker.service
    # 关闭 docker 自启动
    systemctl disable docker.service

二、docker 容器自动启动

    # 开启容器自启动
    docker update --restart=always 【容器名】
    例如:docker update --restart=always tracker
    # 关闭容器自启动
    docker update --restart=no【容器名】
    例如:docker update --restart=no tracker

阅读全文