1 2 3 4 5 6 7 8 9 10 11 12 13
[Unit] Description=Hadoop Secondary Namenode Requires=hadoop-datanode.service After=hadoop-datanode.service [Service] EnvironmentFile=/etc/conf.d/hadoop ExecStart=/usr/bin/hadoop secondarynamenode User=hadoop Group=hadoop [Install] WantedBy=multi-user.target