-
Notifications
You must be signed in to change notification settings - Fork 67
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
Docs - Multiple Classes in Jar, Custom Encoder, Package Class, Resubmit Conf, Debug and Absolute name of artifact & function. #468
Comments
Thanks for questions, they will help us to improve our documentation. For a start, I try to answer here
|
Also, we have gitter room for questions. |
@dos65, Thank you for the explanation. Really appreciate your time and consideration. Package class works. The artifact wasn't refreshed when I added package to class. On restarting I was not able to get the updating artifact work. Using If I run If I run With respect to debugging, I'm looking for a way to put breakpoint in code and debug. Similar to this. |
Last error with function update was fixed in a new version of mist-cli, try to update it with following command: |
After upgrading,
|
@gowravshekar |
This is normal behavior because you can break all functions using that jar. Some additional notes. You can use environment variables to manage artifact version. For example: model = Artifact
name = test-artifact
version = ${ARTIFACT_VERSION}
data.file-path = "./path/to/artifact.jar" function.conf model =
data {
...
path = test-artifact_${ARTIFACT_VERSION}.jar
...
} and then |
Oh, my mistake - |
Does this bug still exist? Is there a way now to debug the spark job? |
@apoorv22 this one is fixed, you can use these options to debug spark job.
|
@blvp, Is there a way to use an environmental variable or config to use in Some thing similar as below: |
Yes, you can use environment variable here in a similar manner: |
The packaged jar has multiple classes. How to write conf for multiple functions pointing to the respective classes.
class-name
.The class has package like
io.hydrosphere
. Addingclass-name = "io.hydrosphere.CorrelationMatrix$"
doesn't work.After submitting the conf, there are few more code changes. If we submit the conf again,
Error: Artifact key xxx.jar has to be unique
. How to overwrite the artifact without manually deleting thedata/artifacts/xxx.jar
anddata/functions/yyy.conf
.The text was updated successfully, but these errors were encountered: