Skip to content

Commit b13ee20

Browse files
authored
[b/353960111] Extract additional software versions (GoogleCloudPlatform#512)
1 parent a597539 commit b13ee20

13 files changed

Lines changed: 67 additions & 1 deletion

File tree

dumper/app/src/main/java/com/google/edwmigration/dumper/application/dumper/connector/hadoop/BashTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
public class BashTask implements Task<Void> {
4343
private static final Logger LOG = LoggerFactory.getLogger(BashTask.class);
4444

45-
private static final Duration SCRIPT_TIMEOUT = Duration.ofMinutes(5);
45+
private static final Duration SCRIPT_TIMEOUT = Duration.ofMinutes(1);
4646

4747
private final String scriptName;
4848

dumper/app/src/main/java/com/google/edwmigration/dumper/application/dumper/connector/hadoop/HadoopMetadataConnector.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,29 @@ public class HadoopMetadataConnector implements MetadataConnector {
4040
static final ImmutableList<String> SCRIPT_NAMES =
4141
ImmutableList.of(
4242
"airflow-version",
43+
"apt-list-packages",
44+
"docker-version",
45+
"gcc-version",
46+
"go-version",
47+
"gplusplus-version",
4348
"grafana-server-version",
4449
"hadoop-version",
4550
"hbase-shell-version",
51+
"hbase-version",
4652
"hive-version",
4753
"java-version",
4854
"lsb-release",
4955
"metastore-connection-details",
5056
"omd-version",
5157
"oozie-admin-status",
58+
"oozie-version",
5259
"os-release",
60+
"perl-version",
5361
"pig-version",
5462
"python-version",
63+
"r-version",
64+
"rpm-list-packages",
65+
"ruby-version",
5566
"scala-version",
5667
"spark-shell-version",
5768
"sqoop-version");
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
if command -v apt > /dev/null 2>&1 ; then
4+
apt list --installed | grep "^\(docker\|g++\|gcc\|hadoop\|hbase\|hive\|mysql\|oozie\|perl\|pig\|python\|r-\|ranger\|ruby\|scala\|spark\|sqoop\|tez/\|zookeeper\)"
5+
fi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
if command -v docker > /dev/null 2>&1 ; then
4+
docker --version
5+
fi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
if command -v gcc > /dev/null 2>&1 ; then
4+
gcc --version
5+
fi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
if command -v go > /dev/null 2>&1 ; then
4+
go version
5+
fi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
if command -v g++ > /dev/null 2>&1 ; then
4+
g++ --version
5+
fi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
if command -v hbase > /dev/null 2>&1 ; then
4+
hbase version
5+
fi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
if command -v oozie > /dev/null 2>&1 ; then
4+
oozie version
5+
fi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
if command -v perl > /dev/null 2>&1 ; then
4+
perl --version
5+
fi

0 commit comments

Comments
 (0)