Collector-kinesis

➜  ~ git clone https://github.com/snowplow/stream-collector.git 
Cloning into 'stream-collector'...
remote: Enumerating objects: 102, done.
remote: Counting objects: 100% (102/102), done.
remote: Compressing objects: 100% (69/69), done.
remote: Total 41723 (delta 23), reused 68 (delta 8), pack-reused 41621
Receiving objects: 100% (41723/41723), 16.46 MiB | 3.22 MiB/s, done.
Resolving deltas: 100% (20471/20471), done.
➜  ~ sbt “project kinesis” assembly                              
[info] Updated file /Users/kfitzpatrick/project/build.properties: set sbt.version to 1.3.8
[info] Loading project definition from /Users/kfitzpatrick/project
[info] Set current project to kfitzpatrick (in build file:/Users/kfitzpatrick/)
[error] Expected ';'
[error] “project
[error]         ^

Hey Guys,

Hrm, what am I doing wrong?

I did this back in April '20 and have the ‘snowplow-stream-collector-kinesis-1.0.0.jar’, only looking to go for a newer version.

Thanks,
Kyle

Hey @kfitzpatrick ,

It seems you didn’t cd into the project. I can understand this from the following line

[info] Loading project definition from /Users/kfitzpatrick/project

whereas it should’ve loaded from /Users/kfitzpatrick/stream-collector/project

Browse to the root of the project and then execute sbt command.

Please let us know how it goes!
Oguzhan

Hey @oguzhanunlu,

A rookie mistake on my behalf, tried within project as you suggested:

➜  project git:(master) ls
BuildSettings.scala Dependencies.scala  build.properties    plugins.sbt
➜  project git:(master) sbt “project kinesis” assembly                            
[info] Updated file /Users/kfitzpatrick/stream-collector/project/project/build.properties: set sbt.version to 1.3.8
[info] Loading project definition from /Users/kfitzpatrick/stream-collector/project/project
[info] Loading settings for project project from plugins.sbt ...
[info] Set current project to project (in build file:/Users/kfitzpatrick/stream-collector/project/)
[error] Expected ';'
[error] “project
[error]         ^
➜  project git:(master) 

Still not quite there, is there anything else I should try?

Thanks
Kyle

You want one directory up from here (currently looks like you’re in the project folder) so you should be able to go:

git clone git@github.com:snowplow/stream-collector.git
cd stream-collector
sbt "project kinesis" assembly

Hey @mike I appreciate the response, I tried that too.

 ➜  ~ git clone https://github.com/snowplow/stream-collector.git
Cloning into 'stream-collector'...
remote: Enumerating objects: 102, done.
remote: Counting objects: 100% (102/102), done.
remote: Compressing objects: 100% (69/69), done.
remote: Total 41723 (delta 23), reused 68 (delta 8), pack-reused 41621
Receiving objects: 100% (41723/41723), 16.46 MiB | 3.95 MiB/s, done.
Resolving deltas: 100% (20471/20471), done.
➜  ~ cd /Users/kfitzpatrick/stream-collector/                  
➜  stream-collector git:(master) sbt “project kinesis” assembly                            
[info] welcome to sbt 1.4.4 (N/A Java 13.0.2)
[info] loading settings for project stream-collector-build from plugins.sbt ...
[info] loading project definition from /Users/kfitzpatrick/stream-collector/project
[info] compiling 2 Scala sources to /Users/kfitzpatrick/stream-collector/project/target/scala-2.12/sbt-1.0/classes ...
[info] loading settings for project root from build.sbt ...
[info] set current project to snowplow-stream-collector (in build file:/Users/kfitzpatrick/stream-collector/)
[error] Expected letter
[error] Expected symbol
[error] Expected '+'
[error] Expected '++'
[error] Expected 'java++'
[error] Expected 'java+'
[error] Expected '^'
[error] Expected '^^'
[error] Expected '+-'
[error] Expected 'debug'
[error] Expected 'info'
[error] Expected 'warn'
[error] Expected 'error'
[error] Expected 'addPluginSbtFile'
[error] Expected 'sbtRebootNetwork'
[error] Expected 'show'
[error] Expected 'print'
[error] Expected 'all'
[error] Expected 'Global'
[error] Expected '*'
[error] Expected 'Zero'
[error] Expected 'ThisBuild'
[error] Expected 'ProjectRef('
[error] Expected '{'
[error] Expected project ID
[error] Expected configuration
[error] Expected configuration ident
[error] Expected key
[error] Expected '__disconnectNetworkChannel'
[error] Expected '__waitWatch'
[error] Expected 'sbtPromptChannel'
[error] Expected end of input.
[error] Expected 'sbtRebootImpl'
[error] Expected 'early('
[error] Expected '-'
[error] Expected '--'
[error] Expected '!'
[error] Expected 'sbtReportResult'
[error] Expected 'sbtMapExec'
[error] Expected 'sbtCompleteExec'
[error] Expected '__failWatch'
[error] Expected '__preWatch'
[error] Expected '__postWatch'
[error] Expected '__runWatch'
[error] Expected '__stopWatch'
[error] “project
[error] ^
➜  stream-collector git:(master) ✗

It looks like you are running with

sbt “project kinesis” assembly (curly quotes)

rather than

sbt "project kinesis" assembly (straight quotes)

1 Like

You sir are an absolute legend, thank you very much.

1 Like