Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception attempting to read userData.json #1728

Open
michaeljfazio opened this issue May 19, 2020 · 1 comment
Open

Exception attempting to read userData.json #1728

michaeljfazio opened this issue May 19, 2020 · 1 comment

Comments

@michaeljfazio
Copy link

I'm running HBase on EMR backed by S3. When ingesting data, the following exception is always thrown at some point. It doesn't seem to cause an issue, the data still imports correctly as far as I can tell.

20/05/19 08:59:27 INFO HBaseAdmin: Started disable of geowave.sar_GEOWAVE_METADATA
20/05/19 08:59:32 ERROR UserData: Error encountered while try to get user data
java.io.IOException: File '/var/aws/emr/userData.json' cannot be read
        at com.amazon.ws.emr.hadoop.fs.shaded.org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:296)
        at com.amazon.ws.emr.hadoop.fs.shaded.org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1711)
        at com.amazon.ws.emr.hadoop.fs.shaded.org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1748)
        at com.amazon.ws.emr.hadoop.fs.util.UserData.getUserData(UserData.java:62)
        at com.amazon.ws.emr.hadoop.fs.util.UserData.<init>(UserData.java:39)
        at com.amazon.ws.emr.hadoop.fs.util.UserData.ofDefaultResourceLocations(UserData.java:52)
        at com.amazon.ws.emr.hadoop.fs.util.AWSSessionCredentialsProviderFactory.buildSTSClient(AWSSessionCredentialsProviderFactory.java:52)
        at com.amazon.ws.emr.hadoop.fs.util.AWSSessionCredentialsProviderFactory.<clinit>(AWSSessionCredentialsProviderFactory.java:17)
        at com.amazon.ws.emr.hadoop.fs.guice.UserGroupMappingAWSSessionCredentialsProvider.getCredentials(UserGroupMappingAWSSessionCredentialsProvider.java:56)
        at com.amazon.ws.emr.hadoop.fs.guice.UserGroupMappingAWSSessionCredentialsProvider.getCredentials(UserGroupMappingAWSSessionCredentialsProvider.java:15)
        at com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws.auth.AWSCredentialsProviderChain.getCredentials(AWSCredentialsProviderChain.java:117)
        at com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws.http.AmazonHttpClient$RequestExecutor.getCredentialsFromContext(AmazonHttpClient.java:1225)
        at com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws.http.AmazonHttpClient$RequestExecutor.runBeforeRequestHandlers(AmazonHttpClient.java:801)
@heisenbergye
Copy link

this issue needs to grive read-only privilege for others in all nodes

sudo chmod 444 /var/aws/emr/userData.json

default is 440

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants