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