我想使用 ec2-user 而不是默认的 nifi 用户运行我的 NiFi 应用程序。我在 bootstrap.conf 中更改了 run.as=ec2-user 但它不起作用。它不允许我启动 Nifi 应用程序在启动 nifi 服务时出现以下错误。
./nifi.sh start
nifi.sh: JAVA_HOME not set; results may vary
Java home:
NiFi home: /opt/nifi/current
Bootstrap Config File: /opt/nifi/current/conf/bootstrap.conf
User Runnug Nifi Application : sudo -u ec2-user
Error: Could not find or load main class org.apache.nifi.bootstrap.RunNiFi
任何指向这个问题的指针?