Skip to content

Commit d00730e

Browse files
committed
version and cleanup.
1 parent 166a6a4 commit d00730e

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<groupId>com.cloudera.utils.hive</groupId>
2424
<artifactId>hive-sre</artifactId>
25-
<version>2.4.0.15-SNAPSHOT</version>
25+
<version>2.4.0.15.1-SNAPSHOT</version>
2626

2727
<name>hive-sre</name>
2828

src/main/java/com/cloudera/utils/hive/sre/DbSetProcess.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -290,49 +290,24 @@ protected void doIt() {
290290
}
291291

292292
// Build an Element Path for each database. This will be use to divide the work.
293-
// int threadCount = getParent().getConfig().getParallelism();
294-
295-
296-
// List<ReportCounter> counters = new ArrayList<ReportCounter>();
297293
int i = 0;
298294
counterGroup.addAndGetTaskState(TaskState.CONSTRUCTED, dbs.length);
299295
for (String database : dbs) {
300296
DbPaths paths = new DbPaths(database, this);
301297
paths.setCommandChecks(this.getCommandChecks());
302298
paths.setSkipCommandCheck(this.getSkipCommandCheck());
303299
paths.setCounterGroup(counterGroup);
304-
// paths.error = this.error;
305-
// paths.success = this.success;
306300
if (paths.init()) {
307-
// paths.setStatus(CONSTRUCTED);
308-
// pathsList.add(paths);
309301
} else {
310302
throw new RuntimeException("Issue establishing a connection to HDFS. " +
311303
"Check credentials(kerberos), configs(/etc/hadoop/conf), " +
312304
"and/or availability of the HDFS service. " +
313305
"Can you run an 'hdfs' cli command successfully?");
314306
}
315-
316-
// paths.setStatus(WAITING);
317-
// counters.add(paths.getCounter());
318307
i++;
319308
LOG.info(getDisplayName() + " adding paths for db: " + database);
320-
// getParent().getReporter().addCounter(getId() + ":" + getDisplayName(), paths.getCounter());
321309
// Add Runnable to Main ThreadPool
322310
Future<String> sf = getParent().getTaskThreadPool().submit(paths);
323-
// ScheduledFuture<String> sf = getParent().getThreadPool().schedule(paths, 10, MILLISECONDS);
324-
// getParent().addProcess(sf);
325-
// try {s
326-
// while (getParent().getProcessThreads().size() > 100) {
327-
// try {
328-
// Thread.sleep(1000);
329-
// } catch (InterruptedException ie) {
330-
// //
331-
// }
332-
// }
333-
// } catch (ConcurrentModificationException cme) {
334-
// //
335-
// }
336311
}
337312

338313
if (getCommandChecks() == null) {

0 commit comments

Comments
 (0)