Skip to content

Conversation

@mce
Copy link

@mce mce commented Apr 9, 2015

No description provided.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Why is this needed?)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are failing on kinesis-acl, at least on my local. Error message is saying a method is missing from a class in jackson library. I don't know the exact reason but adding this dependency fixes the error

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I doubt this is the right way to fix it, since you are declaring a compile-time dependency on something that you don't use. Surely it's because there is a missing dep on some Kinesis component at runtime scope? you also shouldn't manage versions here.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: space after import.

I know we have all lived to regret including third-party classes as part of the API. Although it seems maybe essential here, I wonder if there is any reasonable way to not accept this as AWSCredentials but as access keys or something. I suppose that this could work but would assume a certain type of credentials are being used.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated code a bit after your comments.

Created Credentials class to avoid third-party import in api.
Moved credentials parameter to existing constructor as an optional parameter.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my initial attempt at adding this support introduced a BasicAWSCredentialsProvider as follows:

https://github.com/cfregly/spark/blob/kinesis-dbc/extras/kinesis-asl/src/main/scala/org/apache/spark/streaming/kinesis/BasicAWSCredentialsProvider.scala

highlights:

  1. takes AccessKey and SecretKey as Strings
  2. follows the same hierarchy as the rest of the AWSCredentialsProviders (including not being Serializable)

@srowen
Copy link
Member

srowen commented Apr 10, 2015

ok to test

@SparkQA
Copy link

SparkQA commented Apr 10, 2015

Test build #30028 has started for PR 5439 at commit d93dcb6.

@SparkQA
Copy link

SparkQA commented Apr 10, 2015

Test build #30028 has finished for PR 5439 at commit d93dcb6.

  • This patch fails SparkR unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class Credentials(accessKeyId: String, secretKey: String) extends AWSCredentials
  • This patch does not change any dependencies.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/30028/
Test FAILed.

@SparkQA
Copy link

SparkQA commented Apr 12, 2015

Test build #30115 has started for PR 5439 at commit bb36da0.

@SparkQA
Copy link

SparkQA commented Apr 12, 2015

Test build #30115 has finished for PR 5439 at commit bb36da0.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/30115/
Test PASSed.

@mce
Copy link
Author

mce commented Apr 12, 2015

@srowen tests passed, fyi

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

collapse the IRecordProcessor and IRecordProcessorFactory into a single import, as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@SparkQA
Copy link

SparkQA commented Apr 15, 2015

Test build #30334 has started for PR 5439 at commit 5cfd437.

@SparkQA
Copy link

SparkQA commented Apr 15, 2015

Test build #30334 has finished for PR 5439 at commit 5cfd437.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/30334/
Test FAILed.

@SparkQA
Copy link

SparkQA commented Apr 15, 2015

Test build #30335 has started for PR 5439 at commit 9877a98.

@SparkQA
Copy link

SparkQA commented Apr 15, 2015

Test build #30335 has finished for PR 5439 at commit 9877a98.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/30335/
Test PASSed.

@SparkQA
Copy link

SparkQA commented Apr 16, 2015

Test build #30406 has started for PR 5439 at commit 7789df7.

@SparkQA
Copy link

SparkQA commented Apr 16, 2015

Test build #30406 has finished for PR 5439 at commit 7789df7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/30406/
Test PASSed.

@mce
Copy link
Author

mce commented Apr 16, 2015

@cfregly Moved initialization code into onStart method to fix serialization error. I tested by running example application and it runs without any problem.

@mce
Copy link
Author

mce commented Apr 21, 2015

@cfregly any other comments?

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am really not sure how this will work. AWSCredentials is not serializable, while the Receiver has to be serializable (as the receiver object is sent to the executors from the driver). Did you test whether this works?

@tdas
Copy link
Contributor

tdas commented Apr 30, 2015

I am taking a look at this PR a little late. But I am not sure how this work at all. AWSCredentials is not serializable.

@tdas
Copy link
Contributor

tdas commented May 6, 2015

@mce Are you able to update this? If you are not able to work on this, mind closing this PR?

@mce
Copy link
Author

mce commented May 12, 2015

@tdas sorry for the late response, i'm closing the pr now as i don't have any time to work on this currently.

@mce mce closed this May 12, 2015
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

Successfully merging this pull request may close these issues.

6 participants