Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

AWS Comprehend API CLI command using NiFi

AWS Comprehend API CLI command using NiFi

New Contributor

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

Re: AWS Comprehend API CLI command using NiFi

New Contributor

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

Re: AWS Comprehend API CLI command using NiFi

Super 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..!!

Re: AWS Comprehend API CLI command using NiFi

New Contributor

@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...