Support Questions

Find answers, ask questions, and share your expertise

AWS Comprehend API CLI command using NiFi

avatar
Rising Star

Hi,

Am trying to run the below aws comprehend CLI command using the ExecuteProcess.

aws comprehend detect-sentiment \

--region us-west-2 \

--language-code "en" \

--text "It is raining today in Seattle."

However End up getting the following error,

Failed to create process due to Cannot run program "aws comprehend detect-sentiment --region us-west-2 --language-code "en" --text "It is raining today in Seattle."": error=13, Permission denied: java.io.IOException: Cannot run program "aws comprehend detect-sentiment --region us-west-2 --language-code "en" --text "It is raining today in Seattle."": error=13, Permission denied


Execute Process Configs:

108122-1556063334143.png


When i run the command on the NiFi Nodes, Its was working fine. The issue is when trying to execute the same command using the execute processor.


Please help.

3 REPLIES 3

avatar
Rising Star

Hi, Can someone please provide some directions on this issue? Will be really helpful.

avatar
Master Guru

@Bala S

It seems to be NiFi user is not having access to run the commands, make sure you have given execute permissions to NiFi user.

Refer to this and this links for similar kind of issues..!!

avatar
Rising Star

@Shu I have the read/write permissions to the config and creds files for NiFi user while setting the AWS CLI on the nifi nodes...