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

The file properties doesn't exist java.lang.NullPointerException: inStream parameter is null #1688

Open
DhyaneshNaik opened this issue Nov 4, 2023 · 0 comments

Comments

@DhyaneshNaik
Copy link

DhyaneshNaik commented Nov 4, 2023

I am trying to connect to s3 with the specified parameters but it is giving us below errors.

The file properties doesn't exist java.lang.NullPointerException: inStream parameter is null
java.lang.NullPointerException: inStream parameter is null
at java.base/java.util.Objects.requireNonNull(Objects.java:246)
at java.base/java.util.Properties.load(Properties.java:406)
at site.ycsb.db.S3Client.init(S3Client.java:164)
at site.ycsb.DBWrapper.init(DBWrapper.java:90)
at site.ycsb.ClientThread.run(ClientThread.java:91)
at java.base/java.lang.Thread.run(Thread.java:829)
Inizializing the S3 connection
Could not connect to S3 storage: java.lang.IllegalArgumentException: Access key cannot be null.
java.lang.IllegalArgumentException: Access key cannot be null.
at com.amazonaws.auth.BasicAWSCredentials.(BasicAWSCredentials.java:37)
at site.ycsb.db.S3Client.init(S3Client.java:213)
at site.ycsb.DBWrapper.init(DBWrapper.java:90)
at site.ycsb.ClientThread.run(ClientThread.java:91)
at java.base/java.lang.Thread.run(Thread.java:829)
site.ycsb.DBException: java.lang.IllegalArgumentException: Access key cannot be null.
at site.ycsb.db.S3Client.init(S3Client.java:231)
at site.ycsb.DBWrapper.init(DBWrapper.java:90)
at site.ycsb.ClientThread.run(ClientThread.java:91)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.IllegalArgumentException: Access key cannot be null.
at com.amazonaws.auth.BasicAWSCredentials.(BasicAWSCredentials.java:37)
at site.ycsb.db.S3Client.init(S3Client.java:213)
... 3 more
site.ycsb.DBException: java.lang.IllegalArgumentException: Access key cannot be null.
at site.ycsb.db.S3Client.init(S3Client.java:231)
at site.ycsb.DBWrapper.init(DBWrapper.java:90)
at site.ycsb.ClientThread.run(ClientThread.java:91)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.IllegalArgumentException: Access key cannot be null.
at com.amazonaws.auth.BasicAWSCredentials.(BasicAWSCredentials.java:37)
at site.ycsb.db.S3Client.init(S3Client.java:213)

I am using below command to load the data

./bin/ycsb load s3 -p table=Bucket_name -p s3.region=region_name -p s3.endPoint=s3.amazonaws.com -p s3.accessKeyId=access_key -p s3.secretKey=secrete_key -p fieldlength=10 -p fieldcount=20 -P workloads/workloada

I did below installations
sudo apt update
sudo apt -y upgrade
sudo apt install python-minimal
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
sudo apt install default-jdk
sudo apt install maven

sudo vim /etc/profile.d/maven.sh
copied -
export JAVA_HOME=/usr/lib/jvm/default-java
export M2_HOME=/opt/maven
export MAVEN_HOME=/opt/maven
export PATH=${M2_HOME}/bin:${PATH}

sudo chmod +x /etc/profile.d/maven.sh
source /etc/profile.d/maven.sh

System specification
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

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

1 participant