-
Notifications
You must be signed in to change notification settings - Fork 12
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
[ML-186]Support CDH spark versions #199
Conversation
Signed-off-by: minmingzhu <minming.zhu@intel.com>
@@ -31,7 +31,16 @@ trait NaiveBayesShim extends Logging { | |||
object NaiveBayesShim extends Logging { | |||
def create(uid: String): NaiveBayesShim = { | |||
logInfo(s"Loading NaiveBayes for Spark $SPARK_VERSION") | |||
val shim = SPARK_VERSION match { | |||
// For example: CHD spark version was 3.1.1.3.1.7290.5-2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// For example: CHD spark version was 3.1.1.3.1.7290.5-2. | |
// For example: CDH spark version is 3.1.1.3.1.7290.5-2. |
@@ -31,7 +31,16 @@ trait NaiveBayesShim extends Logging { | |||
object NaiveBayesShim extends Logging { | |||
def create(uid: String): NaiveBayesShim = { | |||
logInfo(s"Loading NaiveBayes for Spark $SPARK_VERSION") | |||
val shim = SPARK_VERSION match { | |||
// For example: CHD spark version was 3.1.1.3.1.7290.5-2. | |||
// Intercepting the third decimal point is the spark version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Intercepting the third decimal point is the spark version. | |
// The string before the third dot is the spark version. |
You just added CDH support for Naive Bayes only, other algorithms are needed as well. |
Use #197 instead |
Signed-off-by: minmingzhu minming.zhu@intel.com
What changes were proposed in this pull request?
closes #186
Does this PR also require the following changes?
No.