Skip to content

Port Hive, Yarn, Flink, Kylin, Camel, Nifi to framework #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 126 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
1bad85b
Collect Configuration Parameters and Tests
wenhsinghuang Nov 18, 2022
b841ab7
Automate Project Installation
wenhsinghuang Nov 24, 2022
83a46b6
add hint in add_project.sh
wenhsinghuang Nov 24, 2022
f963380
modify ctest+const.py
wenhsinghuang Nov 24, 2022
3788ad0
support inject
wenhsinghuang Nov 24, 2022
9145918
Add Project Specific Constants
wenhsinghuang Nov 25, 2022
b1f6410
modify add_project.sh
wenhsinghuang Nov 27, 2022
484a842
update file
wenhsinghuang Nov 28, 2022
91fdc2d
add project kylin
ConstaT99 Nov 30, 2022
04d8cb8
update gitignore
ConstaT99 Nov 30, 2022
de1b9cb
Update default and environmental path variables
CarolSSS Nov 30, 2022
6fb4410
update inject file
ConstaT99 Nov 30, 2022
99b2934
update injection and main in generate ctest
ConstaT99 Nov 30, 2022
a039c39
Update value generation
CarolSSS Nov 30, 2022
09688bd
Merge branch 'main' of https://github.com/ConstaT99/openctest
CarolSSS Nov 30, 2022
7c4e7fd
update identify_param and add_project
ConstaT99 Nov 30, 2022
cead0a4
Update const param
CarolSSS Nov 30, 2022
5ec8058
Update const param
CarolSSS Dec 1, 2022
fbb6c46
Update const param
CarolSSS Dec 1, 2022
eaa60cd
add hadoop yarn common to identify_param
Dec 1, 2022
da876d4
add hadoop-yarn-common to constant.py
Dec 1, 2022
d547796
add yarn-common-default.tsv and conf_params.txt
Dec 1, 2022
b640fac
skipTrace added
Dec 1, 2022
110db32
added test method list
Dec 1, 2022
5ddeec6
update ctest_const
Dec 1, 2022
f09518e
generate ctest update
Dec 1, 2022
c3a4d53
upload param_unset_getter_map.json
Dec 1, 2022
4bc6655
run_ctest update
Dec 1, 2022
6ecaaaa
update value_generation.py
Dec 1, 2022
38ae8a5
change last part
CarolSSS Dec 1, 2022
f9809b7
Finish all first step changing
CarolSSS Dec 1, 2022
d3faa6b
Finish generate value
CarolSSS Dec 2, 2022
9481940
fixed surefire and push
ConstaT99 Dec 2, 2022
260806f
added generated mapping
Dec 4, 2022
877b93d
revert to ctest hadoop
Dec 4, 2022
612e2a3
add patch file for yarn
chrisshen98 Dec 5, 2022
eb76861
new repo
ConstaT99 Dec 5, 2022
5f9b37d
add_project
ConstaT99 Dec 5, 2022
63b80b3
Update generate value and getter/setter result
CarolSSS Dec 6, 2022
23de7b8
update result specific for kylin
CarolSSS Dec 6, 2022
d2d628d
add generated values to ctest
CarolSSS Dec 6, 2022
e366e49
adding test_result/kylin-common
CarolSSS Dec 6, 2022
6c29013
update map
CarolSSS Dec 6, 2022
d133526
update generate ctest with fixed data file
CarolSSS Dec 6, 2022
36355b9
fixed the bug
ConstaT99 Dec 6, 2022
fad6287
fix bugs
ConstaT99 Dec 6, 2022
77bbc0e
update ctest const value
ConstaT99 Dec 6, 2022
c79aaea
modified for hive
Dec 6, 2022
9980400
some updates
ConstaT99 Dec 6, 2022
9c884a0
clean repo
ConstaT99 Dec 6, 2022
b7e0afd
clean repo
ConstaT99 Dec 6, 2022
c4af888
clean
ConstaT99 Dec 6, 2022
89fe040
clean
ConstaT99 Dec 6, 2022
90156af
clean
ConstaT99 Dec 6, 2022
8cf0e86
clean
ConstaT99 Dec 6, 2022
9bc3f87
clean
ConstaT99 Dec 6, 2022
511832b
clean in progress
ConstaT99 Dec 6, 2022
ef7812a
modify for nifi
Dec 6, 2022
387ea76
update some change
ConstaT99 Dec 6, 2022
d40e854
clean
ConstaT99 Dec 6, 2022
b947e96
clean
ConstaT99 Dec 6, 2022
5ded63f
ran identify param
Dec 6, 2022
ef40289
add hive files
Dec 6, 2022
406562f
update git ignore
ConstaT99 Dec 6, 2022
5d95890
fix injection path
Dec 6, 2022
6e6dad7
adding functions for tool
CarolSSS Dec 6, 2022
91ab7ea
update result
CarolSSS Dec 6, 2022
063be4d
update ctest
CarolSSS Dec 6, 2022
ab67280
update ctest
CarolSSS Dec 6, 2022
c9701b0
updates for HIVE
Dec 6, 2022
00d4cb6
common version
ConstaT99 Dec 6, 2022
170125a
add interception and logging patch files for hadoop-yarn-common
Dec 8, 2022
e4b90e4
removed combined patch file
Dec 8, 2022
62488ab
fix bug
ConstaT99 Dec 8, 2022
e670de5
update ignore
ConstaT99 Dec 8, 2022
9d8b4bd
Update-cube storage
CarolSSS Dec 8, 2022
c8574c4
Merge branch 'main' of https://github.com/ConstaT99/openctest
CarolSSS Dec 8, 2022
138aa77
updare git ignore
ConstaT99 Dec 8, 2022
bc2262c
update setup_ubuntu.sh
whhuang4 Dec 8, 2022
013a716
update gitignore
ConstaT99 Dec 9, 2022
692a8c6
Upate identify_param
CarolSSS Dec 9, 2022
69a7bbd
update git ignore
ConstaT99 Dec 9, 2022
951b650
fix storage not found
CarolSSS Dec 9, 2022
59cb74b
update gitignore
ConstaT99 Dec 9, 2022
5179b52
Delete log
CarolSSS Dec 9, 2022
b7f18f6
Delete log
CarolSSS Dec 9, 2022
e8fff4b
update error of fogetting adding in const
CarolSSS Dec 9, 2022
51f7280
Merge branch 'main' of https://github.com/ConstaT99/openctest
ConstaT99 Dec 9, 2022
14acea0
Merge branch 'xlab-uiuc:main' into main
ConstaT99 Dec 9, 2022
5c62bf0
Merge branch 'main' of https://github.com/ConstaT99/openctest
ConstaT99 Dec 9, 2022
3ebfd22
add patch
ConstaT99 Dec 9, 2022
5130fd0
update getctest storage
CarolSSS Dec 9, 2022
039c1d6
update getctest storage
CarolSSS Dec 9, 2022
fb06a15
Update generate ctest
CarolSSS Dec 9, 2022
88467b7
push cube
CarolSSS Dec 9, 2022
01da495
Update hardcoded value
CarolSSS Dec 9, 2022
311127a
update map
ConstaT99 Dec 9, 2022
6cab976
clean repo
ConstaT99 Dec 9, 2022
c0652f3
Update add_project.sh
wenhsinghuang Dec 9, 2022
40950b6
Merge pull request #1 from xlab-uiuc/main
wenhsinghuang Dec 9, 2022
cfe4a23
add patches
whhuang4 Dec 9, 2022
589cb42
cube done
ConstaT99 Dec 9, 2022
2af7f3c
clean program input file
ConstaT99 Dec 9, 2022
c1847a5
run ctest working
Dec 10, 2022
705c63a
update nifi setup
Dec 10, 2022
9c22266
add params
Dec 11, 2022
444a7c2
modification of branches
Dec 11, 2022
09c6e0d
modify identify runner
Dec 11, 2022
09f1f7f
update add project
Dec 11, 2022
5e74038
finish hive
Dec 11, 2022
bbd2cce
adding patches
Dec 11, 2022
1b93b40
added mapping
Dec 12, 2022
9406529
finish nifi
Dec 12, 2022
fee78df
push patch
Dec 12, 2022
4204680
Merge remote-tracking branch 'upstream/hive' into main
ramyabygari Dec 8, 2023
a6bc7aa
Merge remote-tracking branch 'upstream/nifi' into main
ramyabygari Dec 8, 2023
d259c46
docker changes
ramyabygari Dec 8, 2023
adefe8d
flink tested and logging patch changed
ramyabygari Dec 10, 2023
943650a
camel tested
ramyabygari Dec 10, 2023
fbb9e91
hive, nifi, flink and camel work!
ramyabygari Dec 10, 2023
2bab8a1
yarn final checks done
ramyabygari Dec 10, 2023
fd0dfa8
all projects work!
ramyabygari Dec 10, 2023
53f77d9
changes in docker annd readme
ramyabygari Dec 10, 2023
623678e
deletion of redundant files
ramyabygari Dec 10, 2023
c5541d9
ctest_constchange
ramyabygari Dec 10, 2023
6b228f8
nifi-common corrected
ramyabygari Dec 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN \
apt-get install -y git && \
# Install python
apt-get update && \
apt-get install -y python python-dev python-pip python-virtualenv && \
apt-get install -y python python-dev python3-pip python3-virtualenv && \
rm -rf /var/lib/apt/lists/* && \
# Install misc
apt-get update && \
Expand Down
2 changes: 1 addition & 1 deletion core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ To generate ctests or run ctest, you need to first clone the target project.
1. In `openctest/core`, run `./add_project.sh <main project>` to clone the project, switch to and build the branch `ctest-injection`. This branch will be later used by `generate_ctest` and `run_ctest`.
2. In `openctest/core/identify_param`, run `./add_project.sh <main project>` to clone the project, switch to and build the branch `ctest-logging`. This branch will be later used by `identify_param`.

`<main project>` can be `hadoop`, `hbase`, `zookeeper` or `alluxio`.
`<main project>` can be `hadoop`, `hbase`, `zookeeper`, `hive-common`, `alluxio` or `nifi-commons`.

## Usage

Expand Down
18 changes: 17 additions & 1 deletion core/add_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,20 @@ function setup_alluxio() {
cd core
mvn clean install -DskipTests -Dcheckstyle.skip -Dlicense.skip -Dfindbugs.skip -Dmaven.javadoc.skip=true
}
function setup_nifi(){
[ ! -d "app/ctest-nifi" ] && git clone https://github.com/lilacyl/nifi.git app/ctest-nifi
cd app/ctest-nifi
git fetch && git checkout ctest-injection
mvn clean install -pl nifi-commons/ -DskipTest
}

function setup_hive(){
[ ! -d "app/ctest-hive" ] && git clone https://github.com/lilacyl/hive.git app/ctest-hive
cd app/ctest-hive
git fetch && git checkout ctest-injection
cd common
mvn clean install -DskipTests
}

function usage() {
echo "Usage: add_project.sh <main project>"
Expand All @@ -64,7 +78,9 @@ function main() {
hbase) setup_hbase ;;
zookeeper) setup_zookeeper ;;
alluxio) setup_alluxio ;;
*) echo "Unexpected project: $project - only support hadoop, hbase, zookeeper and alluxio." ;;
hive) setup_hive ;;
nifi) setup_nifi ;;
*) echo "Unexpected project: $project - only support hadoop, hbase, zookeeper, nifi, and alluxio." ;;
esac
fi
}
Expand Down
1 change: 1 addition & 0 deletions core/app/ctest-hive
Submodule ctest-hive added at 0c8f09
22 changes: 21 additions & 1 deletion core/ctest_const.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,24 @@
HBASE = "hbase-server"
ZOOKEEPER = "zookeeper-server"
ALLUXIO = "alluxio-core"
HIVE = "hive-common"
NIFI = "nifi-commons"

CTEST_HADOOP_DIR = os.path.join(APP_DIR, "ctest-hadoop")
CTEST_HBASE_DIR = os.path.join(APP_DIR, "ctest-hbase")
CTEST_ZK_DIR = os.path.join(APP_DIR, "ctest-zookeeper")
CTEST_ALLUXIO_DIR = os.path.join(APP_DIR, "ctest-alluxio")
CTEST_HIVE_DIR = os.path.join(APP_DIR, "ctest-hive")
CTEST_NIFI_DIR = os.path.join(APP_DIR, "ctest-nifi")

PROJECT_DIR = {
HCOMMON: CTEST_HADOOP_DIR,
HDFS: CTEST_HADOOP_DIR,
HBASE: CTEST_HBASE_DIR,
ZOOKEEPER: CTEST_ZK_DIR,
ALLUXIO: CTEST_ALLUXIO_DIR,
HIVE: CTEST_HIVE_DIR,
NIFI: CTEST_NIFI_DIR,
}


Expand All @@ -34,12 +40,16 @@
HBASE: "hbase-server",
ZOOKEEPER: "zookeeper-server",
ALLUXIO: "core",
HIVE: "common",
NIFI: "nifi-commons",
}


# surefire report
SUREFIRE_SUBDIR = "target/surefire-reports/"
SUREFIRE_XML = "TEST-{}.xml" # slot is the classname
HIVE_SUREFIRE_XML = "TEST-org.apache.hadoop.hive.conf.{}.xml" # slot is the classname
SUREFIRE_XML_NIFI = "TEST-org.apache.nifi.util.{}.xml" # slot is the classname
SUREFIRE_TXT = "{}.txt" # testclass
SUREFIRE_OUTTXT = "{}-output.txt" #testclass

Expand All @@ -58,6 +68,8 @@
os.path.join(CTEST_ALLUXIO_DIR, MODULE_SUBDIR[ALLUXIO], "server/worker", SUREFIRE_SUBDIR),
os.path.join(CTEST_ALLUXIO_DIR, MODULE_SUBDIR[ALLUXIO], "server/master", SUREFIRE_SUBDIR),
],
HIVE: [os.path.join(CTEST_HIVE_DIR, MODULE_SUBDIR[HIVE], SUREFIRE_SUBDIR)],
NIFI: [os.path.join(CTEST_NIFI_DIR, MODULE_SUBDIR[NIFI],"nifi-properties", SUREFIRE_SUBDIR)],
}

# default or deprecate conf path
Expand All @@ -74,7 +86,9 @@
HDFS: os.path.join(DEFAULT_CONF_DIR, HDFS + "-default.tsv"),
HBASE: os.path.join(DEFAULT_CONF_DIR, HBASE + "-default.tsv"),
ALLUXIO: os.path.join(DEFAULT_CONF_DIR, ALLUXIO + "-default.tsv"),
ZOOKEEPER: os.path.join(DEFAULT_CONF_DIR, ZOOKEEPER + "-default.tsv")
ZOOKEEPER: os.path.join(DEFAULT_CONF_DIR, ZOOKEEPER + "-default.tsv"),
HIVE: os.path.join(DEFAULT_CONF_DIR, HIVE + "-default.tsv"),
NIFI: os.path.join(DEFAULT_CONF_DIR, NIFI + "-default.tsv"),
}


Expand All @@ -96,6 +110,12 @@
],
ALLUXIO: [
os.path.join(CTEST_ALLUXIO_DIR, "core/alluxio-ctest.properties")
],
HIVE: [
os.path.join(CTEST_HIVE_DIR, "conf/hive-ctest.xml")
],
NIFI: [
os.path.join(CTEST_NIFI_DIR, "nifi-commons/nifi-properties/src/test/resources/NiFiProperties/conf/ctest.properties")
]
}

Expand Down
Loading