Skip to content

Commit

Permalink
Renamed all packages to use the new package naming convention and rep…
Browse files Browse the repository at this point in the history
…laced every occurrences of 'uif' with 'gobblin'

Jira: ETL-2476

Signed-off-by: Yinan Li <[email protected]>
  • Loading branch information
liyinan926 committed Feb 10, 2015
1 parent 291a624 commit 93c89ce
Show file tree
Hide file tree
Showing 257 changed files with 1,530 additions and 1,538 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.azkaban;
package gobblin.azkaban;

import java.util.Properties;

Expand All @@ -20,10 +20,10 @@

import azkaban.jobExecutor.AbstractJob;

import com.linkedin.uif.configuration.ConfigurationKeys;
import com.linkedin.uif.runtime.EmailNotificationJobListener;
import com.linkedin.uif.runtime.JobLauncher;
import com.linkedin.uif.runtime.JobLauncherFactory;
import gobblin.configuration.ConfigurationKeys;
import gobblin.runtime.EmailNotificationJobListener;
import gobblin.runtime.JobLauncher;
import gobblin.runtime.JobLauncherFactory;


/**
Expand Down
2 changes: 1 addition & 1 deletion bin/gobblin-mapreduce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ GOBBLIN_CONFIG_FILE=$FWDIR/conf/gobblin-mapreduce.properties
# Launch the job to run on Hadoop
$HADOOP_BIN_DIR/hadoop jar \
$FWDIR/lib/runtime.jar \
com.linkedin.uif.runtime.mapreduce.CliMRJobLauncher \
gobblin.runtime.mapreduce.CliMRJobLauncher \
-jt $JOB_TRACKER_URL \
-fs $FS_URL \
-libjars $LIBJARS \
Expand Down
2 changes: 1 addition & 1 deletion bin/gobblin-standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ start() {
COMMAND+="-Dlog4j.configuration=file://$FWDIR/conf/log4j-standalone.xml "
COMMAND+="-cp $CLASSPATH "
COMMAND+="-Dorg.quartz.properties=$FWDIR/conf/quartz.properties "
COMMAND+="com.linkedin.uif.scheduler.SchedulerDaemon $CONFIG_FILE"
COMMAND+="gobblin.scheduler.SchedulerDaemon $CONFIG_FILE"
echo "Running command:"
echo "$COMMAND"
nohup $COMMAND & echo $! > $PID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.configuration;
package gobblin.configuration;

/**
* A central place for all Gobblin configuration property keys.
Expand Down Expand Up @@ -84,7 +84,7 @@ public class ConfigurationKeys {
public static final String SOURCE_CLASS_KEY = "source.class";
public static final String CONVERTER_CLASSES_KEY = "converter.classes";
public static final String FORK_OPERATOR_CLASS_KEY = "fork.operator.class";
public static final String DEFAULT_FORK_OPERATOR_CLASS = "com.linkedin.uif.fork.IdentityForkOperator";
public static final String DEFAULT_FORK_OPERATOR_CLASS = "gobblin.fork.IdentityForkOperator";
public static final String JOB_COMMIT_POLICY_KEY = "job.commit.policy";
public static final String DEFAULT_JOB_COMMIT_POLICY = "full";
public static final String WORK_UNIT_RETRY_POLICY_KEY = "workunit.retry.policy";
Expand Down Expand Up @@ -172,7 +172,7 @@ public class ConfigurationKeys {
public static final String WRITER_STAGING_DIR = WRITER_PREFIX + ".staging.dir";
public static final String WRITER_OUTPUT_DIR = WRITER_PREFIX + ".output.dir";
public static final String WRITER_BUILDER_CLASS = WRITER_PREFIX + ".builder.class";
public static final String DEFAULT_WRITER_BUILDER_CLASS = "com.linkedin.uif.writer.AvroDataWriterBuilder";
public static final String DEFAULT_WRITER_BUILDER_CLASS = "gobblin.writer.AvroDataWriterBuilder";
public static final String WRITER_FILE_NAME = WRITER_PREFIX + ".file.name";
public static final String WRITER_FILE_PATH = WRITER_PREFIX + ".file.path";
public static final String WRITER_BUFFER_SIZE = WRITER_PREFIX + ".buffer.size";
Expand Down Expand Up @@ -210,7 +210,7 @@ public class ConfigurationKeys {
*/
public static final String DATA_PUBLISHER_PREFIX = "data.publisher";
public static final String DATA_PUBLISHER_TYPE = DATA_PUBLISHER_PREFIX + ".type";
public static final String DEFAULT_DATA_PUBLISHER_TYPE = "com.linkedin.uif.publisher.BaseDataPublisher";
public static final String DEFAULT_DATA_PUBLISHER_TYPE = "gobblin.publisher.BaseDataPublisher";
public static final String DATA_PUBLISHER_FINAL_DIR = DATA_PUBLISHER_PREFIX + ".final.dir";
public static final String DATA_PUBLISHER_REPLACE_FINAL_DIR = DATA_PUBLISHER_PREFIX + ".replace.final.dir";
public static final String DATA_PUBLISHER_FINAL_NAME = DATA_PUBLISHER_PREFIX + ".final.name";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
/* (c) 2014 LinkedIn Corp. All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.configuration;
package gobblin.configuration;

import gobblin.source.workunit.Extract;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
Expand All @@ -27,9 +28,7 @@
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;

import com.linkedin.uif.source.workunit.Extract;
import com.linkedin.uif.source.workunit.Extract.TableType;
import com.linkedin.uif.source.workunit.WorkUnit;
import gobblin.source.workunit.WorkUnit;


/**
Expand All @@ -39,7 +38,7 @@
* <p>
* Properties can be overwritten at runtime and persisted upon job completion. Persisted
* properties will be loaded in the next run and made available to use by the
* {@link com.linkedin.uif.source.Source}.
* {@link gobblin.source.Source}.
* </p>
*
* @author kgoodhop
Expand Down Expand Up @@ -83,12 +82,12 @@ public List<WorkUnitState> getPreviousWorkUnitStates() {
* This method should always return a new unique {@link Extract} instance.
* </p>
*
* @param type {@link TableType}
* @param type {@link gobblin.source.workunit.Extract.TableType}
* @param namespace namespace of the table this extract belongs to
* @param table name of the table this extract belongs to
* @return a new unique {@link Extract} instance
*/
public synchronized Extract createExtract(TableType type, String namespace, String table) {
public synchronized Extract createExtract(Extract.TableType type, String namespace, String table) {
Extract extract = new Extract(this, type, namespace, table);
while (extractSet.contains(extract)) {
DateTime extractDateTime = DTF.parseDateTime(extract.getExtractId());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* (c) 2014 LinkedIn Corp. All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.configuration;
package gobblin.configuration;

import java.io.DataInput;
import java.io.DataOutput;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
/* (c) 2014 LinkedIn Corp. All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.configuration;
package gobblin.configuration;

import gobblin.source.workunit.Extract;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.Set;

import com.google.common.collect.Sets;

import com.linkedin.uif.source.workunit.Extract;
import com.linkedin.uif.source.workunit.ImmutableWorkUnit;
import com.linkedin.uif.source.workunit.WorkUnit;
import gobblin.source.workunit.ImmutableWorkUnit;
import gobblin.source.workunit.WorkUnit;


/**
Expand Down Expand Up @@ -108,7 +108,7 @@ public void setWorkingState(WorkingState state) {
}

/**
* Get the high watermark as set in {@link com.linkedin.uif.source.extractor.Extractor}.
* Get the high watermark as set in {@link gobblin.source.extractor.Extractor}.
*
* @return high watermark
*/
Expand Down Expand Up @@ -159,9 +159,9 @@ public boolean contains(String key) {
}

/**
* Get the {@link Extract} associated with the {@link WorkUnit}.
* Get the {@link gobblin.source.workunit.Extract} associated with the {@link WorkUnit}.
*
* @return {@link Extract} associated with the {@link WorkUnit}
* @return {@link gobblin.source.workunit.Extract} associated with the {@link WorkUnit}
*/
public Extract getExtract() {
Extract curExtract = new Extract(workunit.getExtract());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.converter;
package gobblin.converter;

import org.apache.avro.Schema;
import org.apache.avro.generic.GenericRecord;

import com.linkedin.uif.configuration.WorkUnitState;
import gobblin.configuration.WorkUnitState;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.converter;
package gobblin.converter;

import com.linkedin.uif.configuration.WorkUnitState;
import gobblin.configuration.WorkUnitState;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* (c) 2014 LinkedIn Corp. All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.converter;
package gobblin.converter;

/**
* A type of {@link Exception} thrown when there's anything wrong
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.converter;
package gobblin.converter;

import java.util.Iterator;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* (c) 2014 LinkedIn Corp. All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.converter;
package gobblin.converter;

/**
* A type of {@link Exception} thrown when there's anything wrong
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.converter;
package gobblin.converter;

import java.util.Iterator;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.converter;
package gobblin.converter;

import org.apache.avro.Schema;
import org.apache.avro.generic.GenericRecord;

import com.linkedin.uif.configuration.WorkUnitState;
import gobblin.configuration.WorkUnitState;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* (c) 2014 LinkedIn Corp. All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.fork;
package gobblin.fork;

/**
* A type of {@link java.lang.Exception}s thrown when copying is not supported.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* (c) 2014 LinkedIn Corp. All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.fork;
package gobblin.fork;

/**
* An interface for classes that supports making copies of their instances.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* (c) 2014 LinkedIn Corp. All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.fork;
package gobblin.fork;

import org.apache.avro.generic.GenericData;
import org.apache.avro.generic.GenericRecord;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.fork;
package gobblin.fork;

import org.apache.avro.Schema;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/* (c) 2014 LinkedIn Corp. All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied.
*/

package com.linkedin.uif.fork;
package gobblin.fork;

import java.io.Closeable;
import java.util.List;

import com.linkedin.uif.configuration.WorkUnitState;
import gobblin.configuration.WorkUnitState;


/**
Expand Down
Loading

0 comments on commit 93c89ce

Please sign in to comment.