报错
F:\apache-flume-1.7.0-bin\bin>powershell.exe -NoProfile -InputFormat none -ExecutionPolicy unrestricted -File F:\apache-flume-1.7.0-bin\bin\flume-ng.ps1 agent -conf ../conf -conf-file ../conf/example.conf -name a1 -property flume.root.logger=INFO,console
'powershell.exe' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
解决
cd F:\apache-flume-1.7.0-bin\bin
添加 powershell.exe 解决