Skip to content

Commit

Permalink
minor, remove a deprecated configuration("kylin.job.lock") usage in t…
Browse files Browse the repository at this point in the history
…he code.
  • Loading branch information
Aaaaaaron authored and shaofengshi committed Nov 28, 2018
1 parent 4158d7b commit be5df4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
*
* to enable the distributed job server, you need to set and update three configs in the kylin.properties:
* 1. kylin.job.scheduler.default=2
* 2. kylin.job.lock=org.apache.kylin.storage.hbase.util.ZookeeperJobLock
* 3. add all the job servers and query servers to the kylin.server.cluster-servers
* 2. add all the job servers and query servers to the kylin.server.cluster-servers
*/
public class DistributedScheduler implements Scheduler<AbstractExecutable>, ConnectionStateListener {
private static final Logger logger = LoggerFactory.getLogger(DistributedScheduler.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public class BaseTestDistributedScheduler extends HBaseMetadataTestCase {
@BeforeClass
public static void setup() throws Exception {
staticCreateTestMetadata();
System.setProperty("kylin.job.lock", "org.apache.kylin.storage.hbase.util.ZookeeperDistributedJobLock");

new File(confDstPath1).getParentFile().mkdirs();
new File(confDstPath2).getParentFile().mkdirs();
Expand Down Expand Up @@ -128,7 +127,6 @@ public static void after() throws Exception {
}

FileUtils.deleteDirectory(localMetaDir);
System.clearProperty("kylin.job.lock");
System.clearProperty("kylin.metadata.url");
staticCleanupTestMetadata();
}
Expand Down

0 comments on commit be5df4a

Please sign in to comment.