Skip to content

Commit

Permalink
Bug fix in SegmentCreationJob and SegmentCreationMapper (apache#3844)
Browse files Browse the repository at this point in the history
Set job jar in SegmentCreationJob
Add a missing break for switch in SegmentCreationMapper
  • Loading branch information
Jackie-Jiang authored Feb 15, 2019
1 parent 729ba77 commit 093f917
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ public void run()

// Set up the job
Job job = Job.getInstance(_conf);
job.setJarByClass(getClass());
job.setJobName(getClass().getName());

Configuration jobConf = job.getConfiguration();
String hadoopTokenFileLocation = System.getenv("HADOOP_TOKEN_FILE_LOCATION");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public void setup(Context context)
new NormalizedDateSegmentNameGenerator(_rawTableName, _jobConf.get(JobConfigConstants.SEGMENT_NAME_PREFIX),
_jobConf.get(JobConfigConstants.EXCLUDE_SEQUENCE_ID), validationConfig.getSegmentPushType(),
validationConfig.getSegmentPushFrequency(), validationConfig.getTimeType(), timeFormat);
break;
default:
throw new UnsupportedOperationException("Unsupported segment name generator type: " + segmentNameGeneratorType);
}
Expand Down

0 comments on commit 093f917

Please sign in to comment.