-
Notifications
You must be signed in to change notification settings - Fork 986
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added exceptions when encountering TTL and Timestamp mappings on ES 6+
InitializationUtils validates that the settings are not present when running against ES 6+, and logs deprecation warnings if they are present when running against ES 5.x and below. Added deprecated tags to the TTL and Timestamp metadata enums (in MetadataExtractor AND in spark rdd packages). When using the metadata tags with Spark RDD's and the MetadataExtractor, a dummy field extractor that throws exceptions is returned for TTL and Timestamp when running against ES 6+. Fixes #986
- Loading branch information
Showing
9 changed files
with
168 additions
and
6 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
mr/src/main/java/org/elasticsearch/hadoop/EsHadoopUnsupportedOperationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.elasticsearch.hadoop; | ||
|
||
/** | ||
* Denotes an operation that is not allowed to be performed, often due to the feature support of | ||
* the version of Elasticsearch being used. | ||
*/ | ||
public class EsHadoopUnsupportedOperationException extends EsHadoopException { | ||
|
||
public EsHadoopUnsupportedOperationException() { | ||
super(); | ||
} | ||
|
||
public EsHadoopUnsupportedOperationException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public EsHadoopUnsupportedOperationException(String message) { | ||
super(message); | ||
} | ||
|
||
public EsHadoopUnsupportedOperationException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters