Skip to content
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

Bump netty-all from 4.0.52.Final to 4.1.42.Final in /hadoop-project #239

Open
wants to merge 607 commits into
base: calvin
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
607 commits
Select commit Hold shift + click to select a range
54082a9
[ENH] add setHeader stored procedure
gangliao Jun 20, 2019
cd23bb8
[EHN] add setName stored procedure
gangliao Jun 20, 2019
2399281
[ENH] add insertUc stored procedure
gangliao Jun 20, 2019
8f0769a
[ENH] add getParent stored procedure
gangliao Jun 20, 2019
999da50
[ENH] add GetUcClientName stored procedure
gangliao Jun 20, 2019
b6cf728
[ENH] add GetNumBlocks stored procedure
gangliao Jun 20, 2019
efca5b3
[ENH] add GetModificationTime stored procedure
gangliao Jun 20, 2019
6eb438d
[ENH] add GetAccessTime stored procedure
gangliao Jun 20, 2019
9d7fbf4
[ENH] add GetName stored procedure
gangliao Jun 20, 2019
59d4820
[ENH] add getPermission stored procedure
gangliao Jun 20, 2019
793050a
fix typo
gangliao Jun 20, 2019
657d55a
[ENH] add setAccessTime and SetModificationTime
gangliao Jun 20, 2019
e49255b
[ENH] add DeleteViaBcId stored procedures
gangliao Jun 20, 2019
a5e5244
[ENH] add SetParent stored procedure
gangliao Jun 20, 2019
3760607
google java code format
gangliao Jun 20, 2019
6260df6
[FIX] compile error
gangliao Jun 20, 2019
b928019
Merge pull request #126 from DSL-UMD/distributed
gangliao Jun 20, 2019
e2845a5
FIX stored procedure compliation
gangliao Jun 20, 2019
5b6979b
Merge pull request #128 from DSL-UMD/distributed
gangliao Jun 20, 2019
945be92
change to debug
gangliao Jun 23, 2019
62a9844
add build and test scripts
gangliao Jun 23, 2019
b2aa117
Merge pull request #129 from DSL-UMD/distributed
gangliao Jun 23, 2019
d4b76f0
add GetBlockIds stored procedure
gangliao Jun 23, 2019
fc15c7f
Merge pull request #130 from DSL-UMD/distributed
gangliao Jun 23, 2019
55b2e81
add CheckXAttrExistence stored procedure
gangliao Jun 24, 2019
85fc376
add CheckXAttrExistence stored procedure
gangliao Jun 24, 2019
cb05c8e
add InsertXAttr stored procedure
gangliao Jun 24, 2019
ba571df
aysnc update mtime
gangliao Jun 24, 2019
2d1e10c
Merge pull request #131 from DSL-UMD/distributed
gangliao Jun 24, 2019
c945460
add Removal Listeners skeleton
gangliao Jun 24, 2019
273459e
after eviction, update object from cache to DB
gangliao Jul 6, 2019
5fadba5
Add indexedCache for multikeys to single value
gangliao Jul 7, 2019
77227c2
add CompositeKey
gangliao Jul 8, 2019
d3e118b
voltdb NullCallback for async
gangliao Jul 8, 2019
7e0a692
add compositeKey for cache
gangliao Jul 9, 2019
04eb919
[FIX] root dir's parent is null
gangliao Jul 9, 2019
04398e5
Merge pull request #133 from DSL-UMD/distributed
gangliao Jul 9, 2019
5e0c287
update
gangliao Jul 9, 2019
09b6ea1
change resolve path
gangliao Jul 9, 2019
6ea1f22
Merge pull request #134 from DSL-UMD/distributed
gangliao Jul 10, 2019
1fbcc47
[OPT] Optimize Create Op
gangliao Jul 11, 2019
7af9ca5
update
gangliao Jul 11, 2019
a0d6669
Merge pull request #135 from DSL-UMD/distributed
gangliao Jul 11, 2019
697bf0a
[ENH] Optimize Create Op
gangliao Jul 12, 2019
7653d5f
Merge pull request #136 from DSL-UMD/distributed
gangliao Jul 12, 2019
36960af
update pool size
gangliao Jul 12, 2019
5757e1e
[FIX] update file rename in cache
gangliao Jul 12, 2019
0bc155c
[ENH] refine code
gangliao Jul 15, 2019
468d528
Merge pull request #137 from DSL-UMD/distributed
gangliao Jul 15, 2019
3dd5239
[ENH] cache uc
gangliao Jul 15, 2019
0bfb2b7
add blockNum
gangliao Jul 15, 2019
7435e70
Merge pull request #138 from DSL-UMD/distributed
gangliao Jul 15, 2019
1d54202
[ENH] Optimize getChildrenIds
gangliao Jul 16, 2019
b3edd91
[OPT] refine code
gangliao Jul 16, 2019
be789a8
Merge pull request #140 from DSL-UMD/distributed
gangliao Jul 16, 2019
0d73521
[ENH] add Scheduled Executor to async update DB
gangliao Jul 17, 2019
d540efd
[FIX] concurrentHashSet iterator
gangliao Jul 17, 2019
276b788
[FIX] sync inodes to db
gangliao Jul 17, 2019
88a66b8
Merge pull request #141 from DSL-UMD/distributed
gangliao Jul 17, 2019
c949943
change to scheduleAtFixedRate with period
gangliao Jul 17, 2019
4c2ff7e
Merge pull request #143 from DSL-UMD/distributed
gangliao Jul 17, 2019
1658710
add hopfs docker
gangliao Jul 18, 2019
3c99828
disable doc
gangliao Jul 18, 2019
18f9eeb
Merge pull request #144 from DSL-UMD/distributed
gangliao Jul 18, 2019
5398242
add ndb config
gangliao Jul 18, 2019
c6cb68e
Merge pull request #145 from DSL-UMD/distributed
gangliao Jul 18, 2019
3638be3
update ndb config
gangliao Jul 18, 2019
6c161d2
add ndb clusterj jar and native lib
gangliao Jul 19, 2019
5a24acd
Merge pull request #146 from DSL-UMD/distributed
gangliao Jul 19, 2019
946e159
add hopfs
gangliao Jul 28, 2019
889e3a6
Merge pull request #147 from DSL-UMD/distributed
gangliao Jul 28, 2019
f446a39
update
gangliao Jul 28, 2019
718a21d
Merge pull request #148 from DSL-UMD/distributed
gangliao Jul 28, 2019
0511d03
update
gangliao Jul 28, 2019
2b5ac56
add nnproxy codebase
gangliao Jul 28, 2019
62a55d6
Merge pull request #149 from DSL-UMD/distributed
gangliao Jul 28, 2019
4a11841
refine readme for nnproxy
gangliao Jul 28, 2019
8a34cc1
Merge pull request #150 from DSL-UMD/distributed
gangliao Jul 28, 2019
7b932d6
add clientAddress for proxy
gangliao Jul 28, 2019
bfb1175
update pom.xml
gangliao Jul 29, 2019
9f8842c
revert NameNodeProxies
gangliao Jul 29, 2019
c0ae480
change dir
gangliao Jul 29, 2019
c6b61aa
fix error
gangliao Jul 29, 2019
cfbc614
Merge pull request #151 from DSL-UMD/distributed
gangliao Jul 29, 2019
e80bbde
Update nnproxy to hadoop 3.3.1
gangliao Jul 29, 2019
4407134
Merge pull request #152 from DSL-UMD/distributed
gangliao Jul 29, 2019
b909e51
Fix inconsistent between nnproxy and hadoop 3.3.1
gangliao Jul 29, 2019
8bedc76
Merge pull request #153 from DSL-UMD/distributed
gangliao Jul 29, 2019
6d4ba88
remove zookeeper
gangliao Sep 2, 2019
c3d4109
Fix compile error
gangliao Sep 2, 2019
7a47b53
Merge pull request #154 from DSL-UMD/distributed
gangliao Sep 2, 2019
4db9101
Fix runtime error
gangliao Sep 3, 2019
e66231a
Merge pull request #155 from DSL-UMD/distributed
gangliao Sep 3, 2019
1dfc432
record inode attribute's update for backup
gangliao Sep 3, 2019
0570d91
Merge pull request #156 from DSL-UMD/distributed
gangliao Sep 3, 2019
0093112
Refine dump mount table
gangliao Sep 4, 2019
85d1627
update nnproxy
gangliao Sep 4, 2019
ac8efeb
add hadoop-hdfs-nnproxy component
gangliao Sep 4, 2019
0b75bc8
Merge pull request #157 from DSL-UMD/distributed
gangliao Sep 4, 2019
0ceb318
update
gangliao Sep 4, 2019
076648e
Merge pull request #158 from DSL-UMD/distributed
gangliao Sep 4, 2019
1262962
change dir
gangliao Sep 4, 2019
ecda8dc
fix conflict version
gangliao Sep 4, 2019
2153cb5
Merge pull request #159 from DSL-UMD/distributed
gangliao Sep 4, 2019
ba57421
refine dump output
gangliao Sep 4, 2019
096710b
Merge pull request #160 from DSL-UMD/distributed
gangliao Sep 4, 2019
2755821
update load mount table
gangliao Sep 5, 2019
46a1300
Merge pull request #161 from DSL-UMD/distributed
gangliao Sep 5, 2019
0733115
disable CacheRegistry and BlockPoolRegistry
gangliao Sep 5, 2019
729898e
TinyDataNode connected to namenode directly
gangliao Sep 6, 2019
09c6f45
Merge pull request #163 from DSL-UMD/distributed
gangliao Sep 6, 2019
344848c
test voltdb's zk
gangliao Sep 8, 2019
adfcd7d
Merge pull request #165 from DSL-UMD/distributed
gangliao Sep 8, 2019
25cc1ec
Using VoltDB's zookeeper to store mount table
gangliao Sep 9, 2019
61d048d
Merge pull request #166 from DSL-UMD/distributed
gangliao Sep 9, 2019
d4a621d
optimize routing algorithm
gangliao Sep 10, 2019
2802496
Merge pull request #169 from DSL-UMD/distributed
gangliao Sep 10, 2019
ed2a4c9
fix compile error
gangliao Sep 11, 2019
d1293b0
typo
gangliao Sep 11, 2019
93074c7
Merge pull request #170 from DSL-UMD/distributed
gangliao Sep 11, 2019
b87b416
compile on Red Hat Enterprise Linux
gangliao Sep 13, 2019
9617b45
Merge pull request #171 from DSL-UMD/distributed
gangliao Sep 13, 2019
4e850c4
change name
gangliao Sep 13, 2019
868e9cd
Delete getName.java
gangliao Sep 13, 2019
143814d
get dependencies back
gangliao Sep 13, 2019
2e97b5d
ignore bench for now
gangliao Sep 15, 2019
f0b0b11
Merge pull request #172 from DSL-UMD/distributed
gangliao Sep 15, 2019
9f5dfbf
fix nullpointer
gangliao Sep 18, 2019
5842b08
Merge pull request #173 from DSL-UMD/distributed
gangliao Sep 18, 2019
a9e60a0
delay buffer logging
gangliao Sep 18, 2019
f9cd135
Merge pull request #174 from DSL-UMD/distributed
gangliao Sep 18, 2019
ad608bb
Add OBJECT_CACHE_SIZE env
gangliao Sep 18, 2019
b79409e
Merge pull request #175 from DSL-UMD/distributed
gangliao Sep 18, 2019
e340069
add bench script
gangliao Sep 18, 2019
2503c3f
Merge pull request #176 from DSL-UMD/distributed
gangliao Sep 18, 2019
57e2056
Optimize delete op
gangliao Sep 18, 2019
ca43aab
Merge pull request #177 from DSL-UMD/distributed
gangliao Sep 18, 2019
9b8f476
Optimize delete recursively
gangliao Sep 21, 2019
64084bd
ignore bench result for now
gangliao Sep 21, 2019
dce051d
Merge pull request #178 from DSL-UMD/distributed
gangliao Sep 21, 2019
a708b6a
revert back to avoid sync delete
gangliao Sep 21, 2019
a747d96
Merge pull request #179 from DSL-UMD/distributed
gangliao Sep 21, 2019
3fb374a
Optimize Cache Miss
gangliao Sep 22, 2019
e990cb6
Merge pull request #180 from DSL-UMD/distributed
gangliao Sep 22, 2019
a5f800c
fix compile error
gangliao Sep 23, 2019
f698975
Merge pull request #181 from DSL-UMD/distributed
gangliao Sep 23, 2019
17754fc
[FIX] symbol: variable DFSUtil
gangliao Sep 23, 2019
a01c4ef
Merge pull request #182 from DSL-UMD/distributed
gangliao Sep 23, 2019
efd6017
[FIX] root dir
gangliao Sep 23, 2019
514bc25
Merge pull request #183 from DSL-UMD/distributed
gangliao Sep 23, 2019
fd6d2de
typo
gangliao Sep 23, 2019
3e7261b
Merge pull request #184 from DSL-UMD/distributed
gangliao Sep 23, 2019
94a13d6
typo
gangliao Sep 23, 2019
ddf7b35
Merge pull request #185 from DSL-UMD/distributed
gangliao Sep 23, 2019
96756c2
[FIX] An edge case
gangliao Sep 23, 2019
57c272b
Merge pull request #186 from DSL-UMD/distributed
gangliao Sep 23, 2019
3611f92
[FIX] reloading from db to cache
gangliao Sep 23, 2019
83eb471
Merge pull request #187 from DSL-UMD/distributed
gangliao Sep 23, 2019
1ec5cd4
async update inode
gangliao Sep 23, 2019
8ad41d7
Merge pull request #188 from DSL-UMD/distributed
gangliao Sep 23, 2019
5960cfd
[ENH] Avoid cache flooding when do open benchmark
gangliao Sep 24, 2019
50b39c5
Merge pull request #189 from DSL-UMD/distributed
gangliao Sep 24, 2019
e2db39d
[FIX] load entries failed if Node doesn't exist
gangliao Sep 25, 2019
2c515ea
Merge pull request #190 from DSL-UMD/distributed
gangliao Sep 25, 2019
017130e
[FIX] creatingParentsIfNeeded isn't in VoltDB's ZK
gangliao Sep 25, 2019
739cba3
Merge pull request #191 from DSL-UMD/distributed
gangliao Sep 25, 2019
76e1943
[ENH] refine mount table output
gangliao Sep 25, 2019
14271c1
Merge pull request #193 from DSL-UMD/distributed
gangliao Sep 25, 2019
65bccb4
[ENH] refine mount's output
gangliao Sep 25, 2019
0247ff1
Merge pull request #194 from DSL-UMD/distributed
gangliao Sep 25, 2019
5eb670a
[ENH] add batch sync buffer to db and set 5s timer
gangliao Sep 26, 2019
bc65a55
[ENH] use scheduleWithFixedDelay
gangliao Sep 26, 2019
07106d3
[ENH] add final
gangliao Sep 26, 2019
b866bf6
Merge pull request #196 from DSL-UMD/distributed
gangliao Sep 26, 2019
91160e2
add env variable: UPDATE_DB_TIME_DELAY
gangliao Sep 26, 2019
288d38d
Merge pull request #197 from DSL-UMD/distributed
gangliao Sep 26, 2019
03d5119
change time scheduler to MILLISECONDS
gangliao Sep 26, 2019
dc747d8
Merge pull request #198 from DSL-UMD/distributed
gangliao Sep 26, 2019
5fe2925
change to MICROSECONDS
gangliao Sep 26, 2019
3a49c18
Merge pull request #199 from DSL-UMD/distributed
gangliao Sep 26, 2019
371dcb9
[FIX] typo
gangliao Sep 27, 2019
9e35c19
Merge pull request #200 from DSL-UMD/distributed
gangliao Sep 27, 2019
37c61fa
[FIX] async update is too fast, switch to sync call
gangliao Sep 27, 2019
2093508
Merge pull request #201 from DSL-UMD/distributed
gangliao Sep 27, 2019
13cf25f
[ENH] VoltDB Synchronous Command Logging
gangliao Sep 27, 2019
47e96f6
Merge pull request #202 from DSL-UMD/distributed
gangliao Sep 27, 2019
4a0c233
[FIX] test sync command logging in VoltDB
gangliao Sep 28, 2019
9d0d181
Merge pull request #203 from DSL-UMD/distributed
gangliao Sep 28, 2019
4da8cd9
[FIX] awaitility schedule conflicts
gangliao Sep 28, 2019
92f5eb7
update
gangliao Sep 28, 2019
1129490
Merge pull request #204 from DSL-UMD/distributed
gangliao Sep 28, 2019
60289a1
[FIX] clean await import
gangliao Sep 28, 2019
d59d1fa
Merge pull request #205 from DSL-UMD/distributed
gangliao Sep 28, 2019
92ec393
Update test.sh
gangliao Sep 30, 2019
2690db4
Update test.sh
gangliao Sep 30, 2019
3f66bf2
Update test.sh
gangliao Sep 30, 2019
e8ff189
[ENH] AWS EC2 instance need to specify VoltDB's IP
gangliao Sep 30, 2019
7bc554d
Merge pull request #206 from DSL-UMD/distributed
gangliao Sep 30, 2019
4ef8f76
Delete Update
gangliao Oct 1, 2019
3203677
[ENH] add BatchRemoveINodes
gangliao Oct 1, 2019
29b12e6
[ENH] Partitioning Tables
gangliao Oct 1, 2019
77d5af4
Merge pull request #207 from DSL-UMD/distributed
gangliao Oct 1, 2019
8e884c8
Update Readme.md
gangliao Oct 1, 2019
3b22d9a
[FIX] Partition column is not nullable.
gangliao Oct 1, 2019
9f0a3b5
Merge pull request #208 from DSL-UMD/distributed
gangliao Oct 1, 2019
f60c1f2
[FIX] The PRIMARY KEY on the partitioned table INODES does not includ…
gangliao Oct 1, 2019
92797bc
Merge pull request #209 from DSL-UMD/distributed
gangliao Oct 1, 2019
0c387a7
[ENH] multiple-partition constraint
gangliao Oct 1, 2019
74771cf
Merge pull request #210 from DSL-UMD/distributed
gangliao Oct 1, 2019
560513e
update
gangliao Oct 1, 2019
e279dcd
Merge pull request #211 from DSL-UMD/distributed
gangliao Oct 1, 2019
58c54df
update
gangliao Oct 1, 2019
fbdc9af
Merge pull request #212 from DSL-UMD/distributed
gangliao Oct 1, 2019
841af8d
update
gangliao Oct 1, 2019
e260548
Merge pull request #213 from DSL-UMD/distributed
gangliao Oct 1, 2019
4559e32
[FIX] java.lang.NullPointerException
gangliao Oct 1, 2019
8ad6c07
Merge pull request #214 from DSL-UMD/distributed
gangliao Oct 1, 2019
7d7d936
update
gangliao Oct 1, 2019
5dd7505
Merge pull request #215 from DSL-UMD/distributed
gangliao Oct 1, 2019
34bee15
[ENH] Sync delete
gangliao Oct 1, 2019
c03a4f2
Merge pull request #216 from DSL-UMD/distributed
gangliao Oct 1, 2019
a0dbf1a
[FIX] remove itself
gangliao Oct 1, 2019
a3f128e
Merge pull request #217 from DSL-UMD/distributed
gangliao Oct 1, 2019
de2f595
[FIX] typo
gangliao Oct 1, 2019
d3a405e
Merge pull request #218 from DSL-UMD/distributed
gangliao Oct 1, 2019
da91aad
[FIX] volt stored procedure param error
gangliao Oct 1, 2019
e81d089
Merge pull request #219 from DSL-UMD/distributed
gangliao Oct 1, 2019
480860f
[AWS] support the public/private ip
gangliao Oct 1, 2019
ea267fd
Merge pull request #220 from DSL-UMD/distributed
gangliao Oct 1, 2019
f60363e
[ENH] for multi namenode test
gangliao Oct 8, 2019
9d8d345
Merge pull request #222 from DSL-UMD/distributed
gangliao Oct 8, 2019
2dd81df
simplify multinamenodes open ops
gangliao Oct 8, 2019
08d6266
Merge pull request #223 from DSL-UMD/distributed
gangliao Oct 8, 2019
4679029
update
gangliao Oct 8, 2019
530a4a2
Merge pull request #224 from DSL-UMD/distributed
gangliao Oct 8, 2019
3f77162
more easier to test delete
gangliao Oct 9, 2019
0a7ca69
Merge pull request #225 from DSL-UMD/distributed
gangliao Oct 9, 2019
a83a3ec
NN_BECHMARK route
gangliao Oct 10, 2019
bca7ed3
Merge pull request #226 from DSL-UMD/distributed
gangliao Oct 10, 2019
a9bdd8b
typo
gangliao Oct 10, 2019
1bf2412
Merge pull request #227 from DSL-UMD/distributed
gangliao Oct 10, 2019
e50ad32
mount table resolve is not a bottleneck
gangliao Oct 10, 2019
aa9136c
Merge pull request #228 from DSL-UMD/distributed
gangliao Oct 10, 2019
441565f
Optimize remove child
gangliao Oct 11, 2019
503571d
Merge pull request #229 from DSL-UMD/distributed
gangliao Oct 11, 2019
1d43488
update batch remove
gangliao Oct 11, 2019
35db17a
Merge pull request #230 from DSL-UMD/distributed
gangliao Oct 11, 2019
e6cb7a6
add some bench scripts
gangliao Jan 15, 2020
7b7917d
Merge pull request #237 from DSLAM-UMD/distributed
gangliao Jan 15, 2020
95b7db5
Bump netty-all from 4.0.52.Final to 4.1.42.Final in /hadoop-project
dependabot[bot] Jan 15, 2020
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
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,23 @@ output.xml
report.html

hadoop-hdds/docs/public

hadoop-calvin-util/*
name/*
data/*
tmp/*

bench/*.class
bench/*.jar

*.class
.factorypath
voltdb-ent-9.0.tar.gz
voltdb-ent

benchmark/hopfs/hops
benchmark/hopfs/META-INF

storedprocs.jar
bench/hdfs
bench/voltfs
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "hadoop-hdfs-project/commons-pool2"]
path = hadoop-hdfs-project/commons-pool2
url = https://github.com/DSL-UMD/commons-pool2
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"java.autobuild.enabled": false,
"java.configuration.updateBuildConfiguration": "interactive"
}
50 changes: 50 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#
# example Dockerfile for https://docs.docker.com/engine/examples/postgresql_service/
#

FROM ubuntu:xenial

# Add the PostgreSQL PGP key to verify their Debian packages.
# It should be the same key as https://www.postgresql.org/media/keys/ACCC4CF8.asc
RUN apt-get update
RUN apt-get install -y gnupg vim wget
RUN wget http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc
RUN apt-key add ACCC4CF8.asc
# Add PostgreSQL's repository. It contains the most recent stable release
# of PostgreSQL, ``9.5``.
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list

# Install ``python-software-properties``, ``software-properties-common`` and PostgreSQL 9.5
# There are some warnings (in red) that show up during the build. You can hide
# them by prefixing each apt-get statement with DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y python-software-properties software-properties-common postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5

# Note: The official Debian and Ubuntu images automatically ``apt-get clean``
# after each ``apt-get``

# Run the rest of the commands as the ``postgres`` user created by the ``postgres-9.5`` package when it was ``apt-get installed``
USER postgres

# Create a PostgreSQL role named ``docker`` with ``docker`` as the password and
# then create a database `docker` owned by the ``docker`` role.
# Note: here we use ``&&\`` to run commands one after the other - the ``\``
# allows the RUN command to span multiple lines.
RUN /etc/init.d/postgresql start &&\
psql --command "CREATE USER docker WITH SUPERUSER PASSWORD 'docker';" &&\
createdb -O docker docker

# Adjust PostgreSQL configuration so that remote connections to the
# database are possible.
RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/9.5/main/pg_hba.conf

# And add ``listen_addresses`` to ``/etc/postgresql/9.5/main/postgresql.conf``
RUN echo "listen_addresses='*'" >> /etc/postgresql/9.5/main/postgresql.conf

# Expose the PostgreSQL port
EXPOSE 5432

# Add VOLUMEs to allow backup of config, logs and databases
VOLUME ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"]

# Set the default command to run when starting the container
CMD ["/usr/lib/postgresql/9.5/bin/postgres", "-D", "/var/lib/postgresql/9.5/main", "-c", "config_file=/etc/postgresql/9.5/main/postgresql.conf"]
157 changes: 157 additions & 0 deletions HdfsMetaInfoSchema.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Properties;

public class HdfsMetaInfoSchema {
private static HdfsMetaInfoSchema instance;
private Connection connection;
private String postgres = "jdbc:postgresql://localhost:5432/docker";
private String cockroach = "jdbc:postgresql://localhost:26257/docker";
private String volt = "jdbc:voltdb://localhost:21212";
private String username = "docker";
private String password = "docker";

private HdfsMetaInfoSchema() throws SQLException {
String env = System.getenv("DATABASE");
try {
String url = null;
Properties props = new Properties();

if (env.equals("VOLT")) {
Class.forName("org.voltdb.jdbc.Driver");
url = System.getenv("VOLTDB_SERVER");
if (url == null) {
url = volt;
} else {
url = "jdbc:voltdb://" + url + ":21212";
}
this.connection = DriverManager.getConnection(url);
} else if (env.equals("COCKROACH")) {
Class.forName("org.postgresql.Driver");
props.setProperty("user", username);
props.setProperty("sslmode", "disable");
this.connection = DriverManager.getConnection(cockroach, props);
url = cockroach;
} else {
Class.forName("org.postgresql.Driver");
props.setProperty("user", username);
props.setProperty("password", password);
this.connection = DriverManager.getConnection(postgres, props);
url = postgres;
}
System.out.println("HdfsSchemaInDB: [" + env + "] " + url);
} catch (Exception ex) {
System.err.println("Database Connection Creation Failed : " + ex.getMessage());
ex.printStackTrace();
System.exit(0);
}

try {
// create inode table in Postgres
String sql1 = "";
String[] tableNames = new String[] {
"hdfs", "namespace", "inodes", "namenodes", "mount", "stringtable",
"inodexattrs", "inodeuc", "inode2block", "datablocks", "blockstripes",
"block2storage", "storage", "delegationkeys", "persisttokens"};
for (String tableName : tableNames) {
if (env.equals("VOLT")) {
sql1 += String.format("DROP TABLE %s IF EXISTS;", tableName);
} else {
sql1 += String.format("DROP TABLE IF EXISTS %s;", tableName);
}
}

String sql2 =
"CREATE TABLE hdfs("
+ " id int primary key, numEntry int, maskBits int,"
+ " currentId int, tokenSequenceNumber int, numKeys int, numTokens int"
+ ");"
+ "CREATE TABLE namespace("
+ " namespaceId int, genstampV1 bigint, genstampV2 bigint,"
+ " genstampV1Limit bigint, lastAllocatedBlockId bigint,"
+ " transactionId bigint, rollingUpgradeStartTime bigint,"
+ " lastAllocatedStripedBlockId bigint"
+ ");"
+ "CREATE TABLE mount("
+ " namenode varchar, path varchar, readOnly int,"
+ " PRIMARY KEY(namenode, path)"
+ ");"
+ "CREATE VIEW namenodes("
+ " namenode"
+ ") AS SELECT DISTINCT namenode FROM mount;"
+ "CREATE TABLE stringtable("
+ " id int primary key, str varchar"
+ ");"
+ "CREATE TABLE delegationkeys("
+ " id int primary key, expiryDate bigint, key varchar"
+ ");"
+ "CREATE TABLE persisttokens("
+ " version int, owner varchar, renewer varchar, realuser varchar, issueDate bigint,"
+ " maxDate bigint, sequenceNumber int primary key, masterKeyId int, expiryDate bigint"
+ ");"
+ "CREATE TABLE inodes("
+ " id bigint, parent bigint NOT NULL, name varchar,"
+ " accessTime bigint, modificationTime bigint,"
+ " header bigint, permission bigint,"
+ " PRIMARY KEY (id, parent)"
+ ");"
+ "PARTITION TABLE inodes ON COLUMN parent;"
+ "CREATE TABLE inodexattrs("
+ " id bigint, namespace smallint, name varchar, value varchar"
+ ");"
+ "CREATE TABLE inodeuc("
+ " id bigint primary key, clientName varchar, clientMachine varchar"
+ ");"
+ "CREATE TABLE inode2block("
+ " blockId bigint primary key, id bigint, idx int"
+ ");"
+ "CREATE TABLE datablocks("
+ " blockId bigint primary key, numBytes bigint, generationStamp bigint,"
+ " replication int, ecPolicyId int"
+ ");"
+ "CREATE TABLE blockstripes("
+ " blockId bigint, idx int, blockIndex int,"
+ " PRIMARY KEY(blockId, idx)"
+ ");"
+ "CREATE TABLE block2storage("
+ " blockId bigint, idx int, storageId varchar,"
+ " PRIMARY KEY(blockId, idx)"
+ ");"
+ "CREATE TABLE storage("
+ " storageId varchar primary key, storageType int, state int,"
+ " capacity bigint, dfsUsed bigint, nonDfsUsed bigint, remaining bigint,"
+ " blockPoolUsed bigint, blockReportCount int, heartbeatedSinceFailover smallint,"
+ " blockContentsStale smallint, datanodeUuid varchar"
+ ");";
Statement st = connection.createStatement();
st.execute(sql1);
st.execute(sql2);
st.close();
} catch (SQLException ex) {
System.err.println(ex.getMessage());
}
}

public Connection getConnection() {
return connection;
}

public static HdfsMetaInfoSchema getInstance() throws SQLException {
if (instance == null) {
instance = new HdfsMetaInfoSchema();
} else if (instance.getConnection().isClosed()) {
instance = new HdfsMetaInfoSchema();
}
return instance;
}

public static void main(String[] args) {
try {
HdfsMetaInfoSchema.getInstance();
} catch (Exception e) {
e.printStackTrace();
}
}
}
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

19 changes: 19 additions & 0 deletions bench/InstrumentationAgent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import java.util.ArrayList;
import java.util.List;
import java.lang.instrument.Instrumentation;

class InstrumentationAgent {
private static volatile Instrumentation globalInstrumentation;
public static void premain(final String agentArgs, final Instrumentation inst) {
globalInstrumentation = inst;
}
public static void agentmain(final String agentArgs, final Instrumentation inst) {
globalInstrumentation = inst;
}
public static long getObjectSize(final Object object) {
if (globalInstrumentation == null) {
throw new IllegalStateException("Agent not initialized.");
}
return globalInstrumentation.getObjectSize(object);
}
}
68 changes: 68 additions & 0 deletions bench/InstrumentationExample.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class InstrumentationExample {

public static void printObjectSize(Object object) {
System.out.println("Object type: " + object.getClass() +
", size: " + InstrumentationAgent.getObjectSize(object) + " bytes");
}

public static void main(String[] arguments) {

class Person {
String name;
int age;
long phone;
boolean female;
byte[] password = {1, 2, 3, 4};
}

Person p = new Person();

int[] a0 = {};
int[] a1 = {1};
int[] a2 = {1, 2};
int[] a3 = new int[100];

String[] b0 = {};
String[] b1 = {"1"};
String[] b2 = {"1", "2"};
String[] b3 = new String[100];

String s0 = "";
String s1 = "hello";

List<Person> al0 = new ArrayList<>(0);
List<Person> al1 = new ArrayList<>(1);
al1.add(new Person());
List<Person> al2 = new ArrayList<>(2);
al2.add(new Person());
al2.add(new Person());
List<Person> al3 = new ArrayList<>(100);
for (int i = 0; i < 100; i++) {
al3.add(new Person());
}

printObjectSize(p);

printObjectSize(a0);
printObjectSize(a1);
printObjectSize(a2);
printObjectSize(a3);

printObjectSize(b0);
printObjectSize(b1);
printObjectSize(b2);
printObjectSize(b3);

printObjectSize(al0);
printObjectSize(al1);
printObjectSize(al2);
printObjectSize(al3);

printObjectSize(s0);
printObjectSize(s1);
}
}
2 changes: 2 additions & 0 deletions bench/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Premain-class: InstrumentationAgent
Agent-class: InstrumentationAgent
15 changes: 15 additions & 0 deletions bench/aws_hdfs_create.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import sys
from fabric import Connection
from tee import StdoutTee, StderrTee

cnn = "3.89.124.4"

node = {"1":"3.89.124.4"}

connect_kwargs = {"key_filename":['/Users/liaogang/.ssh/voltfs.pem']}


with Connection(host=cnn, user="ec2-user", connect_kwargs=connect_kwargs) as c:
c.run("cd /home/ec2-user/hdfs/hadoop-3.3.0-SNAPSHOT;"
"source etc/hadoop/hadoop-env.sh;"
"bash bench.sh")
15 changes: 15 additions & 0 deletions bench/aws_hdfs_open.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import sys
from fabric import Connection
from tee import StdoutTee, StderrTee

cnn = "34.203.247.95"

node = {"1":"34.203.247.95"}

connect_kwargs = {"key_filename":['/Users/liaogang/.ssh/voltfs.pem']}


with Connection(host=cnn, user="ec2-user", connect_kwargs=connect_kwargs) as c:
c.run("cd /home/ec2-user/hdfs/hadoop-3.3.0-SNAPSHOT;"
"source etc/hadoop/hadoop-env.sh;"
"bash bench.sh")
Loading