Skip to content

Commit

Permalink
fix bugs for postgresql-connector config and temporarily disable GTID
Browse files Browse the repository at this point in the history
Signed-off-by: Lei Wang <[email protected]>
  • Loading branch information
doudoubobo committed Jul 10, 2024
1 parent 043ddaf commit 62f2390
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions converter/parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ gart::Status TxnLogParser::parse(LogEntry& out, const string& log_str,
// default for PostgreSQL, -1 for MySQL
// TODO(SSJ): Hardcode for PostgreSQL and MySQL
int tx_id = log["source"].value("txId", -1);
/*
if (tx_id == -1) {
// MySQL
const json& gtid_json = log["source"]["gtid"];
Expand All @@ -313,6 +314,7 @@ gart::Status TxnLogParser::parse(LogEntry& out, const string& log_str,
LOG(ERROR) << "Please open GTID for MySQL.";
}
}
*/

out.tx_id = tx_id;

Expand Down
40 changes: 40 additions & 0 deletions k8s/dockerfiles/interactive.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,46 @@ RUN mkdir -p /var/log/graphscope \
&& chown -R graphscope:graphscope /var/log/graphscope
RUN chmod a+wrx /tmp

# Install dependencies for etcd3
RUN apt-get update && apt-get install -y \
libgrpc-dev \
libgrpc++-dev \
libprotobuf-dev \
protobuf-compiler-grpc \
libboost-all-dev libssl-dev \
&& rm -rf /var/lib/apt/lists/*

RUN git clone https://github.com/microsoft/cpprestsdk.git \
&& cd cpprestsdk \
&& mkdir -p build \
&& cd build \
&& cmake .. -DCPPREST_EXCLUDE_WEBSOCKETS=ON -DBUILD_TESTS=OFF -DBUILD_SAMPLES=OFF \
&& make -j \
&& make install \
&& cd ../.. \
&& rm -rf cpprestsdk

RUN git clone https://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3.git \
&& cd etcd-cpp-apiv3 \
&& mkdir -p build \
&& cd build \
&& cmake .. \
&& make -j \
&& make install \
&& cd ../.. \
&& rm -rf etcd-cpp-apiv3

RUN git clone https://github.com/GraphScope/GART.git \
&& cd GART \
&& git submodule update --init \
&& cd interfaces/grin \
&& mkdir -p build \
&& cd build \
&& cmake .. -DCMAKE_BUILD_TYPE=Release \
&& make -j \
&& cp ./libgart_grin.so /usr/local/lib/ \
&& rm -rf /home/graphscope/GART

WORKDIR /home/graphscope
RUN git clone https://github.com/doudoubobo/GraphScope.git -b v0.1.4 /home/graphscope/GraphScope
RUN cd /home/graphscope/GraphScope/interactive_engine/compiler && \
Expand Down

0 comments on commit 62f2390

Please sign in to comment.