randyabernethy / thriftbook Goto Github PK
View Code? Open in Web Editor NEWSource for the examples in the Programmer's Guide to Apache Thrift
License: Apache License 2.0
Source for the examples in the Programmer's Guide to Apache Thrift
License: Apache License 2.0
Add Perl examples
I just hit the following error trying to run the docker example:
docker@boot2docker:~$ docker run -i -t thrift_book bash
root@b5990aed0310:/ThriftBook# cd part3/java/async
root@b5990aed0310:/ThriftBook/part3/java/async# ant
Buildfile: /ThriftBook/part3/java/async/build.xml
clean:
compile:
[javac] Compiling 2 source files to /ThriftBook/part3/java/async/gen-java
[javac] Compiling 2 source files to /ThriftBook/part3/java/async
[javac] /ThriftBook/part3/java/async/AsyncServer.java:99: error: cannot find symbol
[javac] .workerThreads(4));
[javac] ^
[javac] symbol: method workerThreads(int)
[javac] location: class Args
[javac] Note: /ThriftBook/part3/java/async/AsyncServer.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
BUILD FAILED
/ThriftBook/part3/java/async/build.xml:15: Compile failed; see the compiler error output for details.
The version I'm working on is:
docker@boot2docker:~$ cat ThriftBook/.git/refs/heads/master
a349c9c484e8387d2a8b6d8cdd3c069a6a737460
Add Python setup and Tornado example
The first example and does not compile. I have boost installed and thrift also:
g++ --std=c++17 hello_client.cpp gen-cpp/HelloSvc.cpp -lthrift -lboost
In file included from /usr/include/boost/smart_ptr/make_shared.hpp:14,
from /usr/include/boost/make_shared.hpp:14,
from hello_client.cpp:5:
/usr/include/boost/smart_ptr/make_shared_object.hpp: In instantiation of ‘typename boost::detail::sp_if_not_array::type boost::make_shared(Args&& ...) [with T = apache::thrift::transport::TBufferedTransport; Args = {boost::shared_ptrapache::thrift::transport::TSocket&}; typename boost::detail::sp_if_not_array::type = boost::shared_ptrapache::thrift::transport::TBufferedTransport]’:
hello_client.cpp:15:62: required from here
/usr/include/boost/smart_ptr/make_shared_object.hpp:256:5: error: no matching function for call to ‘apache::thrift::transport::TBufferedTransport::TBufferedTransport(boost::shared_ptrapache::thrift::transport::TSocket&)’
::new( pv ) T( boost::detail::sp_forward( args )... );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I follow the instructions in the book. Thanks in advance for any pointers.
Code examples for the PHP chapter
Randy, these next few lines will work without sudo
in Linux only in cases where the user is member of the docker group. In windows powershell it is of course the way but in WSL2, I think you still need sudo
.
Lines 3 to 8 in f1686f1
Pierre
Hi! I got email:
Not all manuscripts make it to the finish line to become published books. We regret to announce that an Early Access title you own, Programmer's Guide to Apache Thrift, will not be published. The content you've downloaded thus far is yours to keep, but there will be no further updates.
The book's release is canceled? The book was cool! What happened?
Ruby setup and code examples for Apache Thrift
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.