SSB fails with missing JAR file error
Condition
When creating a custom connector by uploading a JAR file and adding it to Streaming SQL Console, after a period of time the job submission fails when using the newly created connector with a JAR file missing error. This can be solved by changing the location of the storage directory in Cloudera Manager.
Cause
The uploaded JAR files are stored under /tmp/ssb-artifacts
in
SQL Stream Builder (SSB). This temporary folder can be cleaned up periodically
by the Operating System (OS), which deletes the JAR files.
Remedy
- Open your cluster in Cloudera Manager.
- Select SQL Stream Builder from the list of services.
- Select Configuration.
-
Search for
Remote StreamBuilder Artifact Storage Directory
in the search bar. -
Specify a new directory path for the property where the uploaded SSB
artifacts will be stored. By default the path is
/tmp/ssb-artifacts
. -
Optional: Search for
Local StreamBuilder Artifact Cache Directory
in the search bar. Specify a new directory path for the property where the uploaded SSB artifacts will be chached. By default the path isssb-artifact-cache
. - Click Save.
- Restart the SQL Stream Builder service.