Skip to content

Commit f5cc45d

Browse files
Merge pull request #1497 from jasonrandrews/review2
Continue sentiment analysis review
2 parents 6cf86a2 + a238552 commit f5cc45d

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

content/learning-paths/servers-and-cloud-computing/sentiment-analysis-eks/sentiment-analysis.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ layout: learningpathall
1010

1111
You will need an [AWS account](https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-creating.html). Create an account if needed.
1212

13-
Four tools are required on your local machine. Follow the links to install each tool.
13+
Multiple tools are required on your local computer. Follow the links to install each tool.
1414

1515
* [Kubectl](/install-guides/kubectl/)
1616
* [AWS CLI](/install-guides/aws-cli/)
1717
* [Docker](/install-guides/docker/)
1818
* [Terraform](/install-guides/terraform/)
19+
* [Java](/install-guides/java/)
1920

2021
To use the AWS CLI, you will need to generate AWS access keys and configure the CLI. Follow the [AWS Credentials](/install-guides/aws_access_keys/) install guide for instructions.
2122

@@ -25,10 +26,10 @@ Take a look at the [GitHub repository](https://github.com/koleini/spark-sentimen
2526

2627
```console
2728
git clone https://github.com/koleini/spark-sentiment-analysis.git
28-
cd spark-sentiment-analysis
29+
cd spark-sentiment-analysis/eks
2930
```
3031

31-
Edit the file `eks/variables.tf` if you want to change the default AWS region.
32+
Edit the file `variables.tf` if you want to change the default AWS region.
3233

3334
The default value is at the top of the file and is set to `us-east-1`.
3435

@@ -48,7 +49,7 @@ terraform apply --auto-approve
4849

4950
Update the `kubeconfig` file to access the deployed EKS cluster with the following command:
5051

51-
If you want to use an AWS CLI profile not named `default`, change the profile name before running the command.
52+
If you want to use an AWS CLI profile with is not the default, change the profile name before running the command.
5253

5354
```console
5455
aws eks --region $(terraform output -raw region) update-kubeconfig --name $(terraform output -raw cluster_name) --profile default
@@ -63,10 +64,22 @@ kubectl create clusterrolebinding spark-role --clusterrole=edit --serviceaccount
6364

6465
## Build the sentiment analysis JAR file
6566

66-
Navigate to the `sentiment_analysis` folder and create a JAR file for the sentiment analyzer:
67+
Navigate to the `sentiment_analysis` folder to create a JAR file for the sentiment analyzer.
68+
69+
You will need `sbt` installed. If you are running Ubuntu, you can install it with:
70+
71+
```console
72+
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
73+
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
74+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
75+
sudo apt-get update
76+
sudo apt-get install sbt
77+
```
78+
79+
If you have another operating system, refer to [Installing sbt](https://www.scala-sbt.org/1.x/docs/Setup.html).
6780

6881
```console
69-
cd sentiment_analysis
82+
cd ../sentiment_analysis
7083
sbt assembly
7184
```
7285

0 commit comments

Comments
 (0)