Hi Abe,
First try doing a basic C++ build following:
https://arrow.apache.org/docs/developers/cpp/building.html
Suggestions to improve this documentation are welcome.
Regards,
Benson
On 12/10/21 4:00 PM, HSU YU-MING wrote:
Hi Benson:__
__ __
When I try to run flight_grpc_example.cc
insidehttps://github.com/apache/arrow/tree/528625e6ed4bf1f6540f8a410a496a14712252e7/cpp/examples/arrow
<https://github.com/apache/arrow/tree/528625e6ed4bf1f6540f8a410a496a14712252e7/cpp/examples/arrow>,
I try to run cmake cmd, but I make challenge below. Do you have any
idea? I guess I need to include something (e.g:
https://github.com/apache/arrow/blob/master/cpp/cmake_modules/BuildUtils.cmake#L800
<https://github.com/apache/arrow/blob/master/cpp/cmake_modules/BuildUtils.cmake#L800>)
?____
__ __
root@localhost:/tmp/arrow/cpp/examples/arrow# cmake CMakeLists.txt____
CMake Error at CMakeLists.txt:18 (add_arrow_example):____
Unknown CMake command "add_arrow_example".____
__ __
__ __
CMake Warning (dev) in CMakeLists.txt:____
No cmake_minimum_required command is present. A line of code such as____
__ __
cmake_minimum_required(VERSION 3.13)____
__ __
should be added at the top of the file. The version specified may be
lower____
if you wish to support older CMake versions for this project. For
more____
information run "cmake --help-policy CMP0000".____
This warning is for project developers. Use -Wno-dev to suppress it.____
__ __
-- Configuring incomplete, errors occurred!____
See also "/tmp/arrow/cpp/examples/arrow/CMakeFiles/CMakeOutput.log
Many Thanks,
Abe
Benson Muite <[email protected]
<mailto:[email protected]>>於 2021年12月10日 週五,下午6:02寫道:
Hi Abe,
Thanks for your interest. Have you tried any of the code in Arrow
flight documentation:
https://arrow.apache.org/cookbook/r/flight.html
<https://arrow.apache.org/cookbook/r/flight.html>
https://arrow.apache.org/cookbook/py/flight.html
<https://arrow.apache.org/cookbook/py/flight.html>
or in the Arrow C++ example:
https://github.com/apache/arrow/blob/master/cpp/examples/arrow/flight_grpc_example.cc
<https://github.com/apache/arrow/blob/master/cpp/examples/arrow/flight_grpc_example.cc>
https://github.com/apache/arrow/blob/master/cpp/examples/arrow/helloworld.proto
<https://github.com/apache/arrow/blob/master/cpp/examples/arrow/helloworld.proto>
or in the tests:
https://github.com/apache/arrow/tree/master/cpp/src/arrow/flight
<https://github.com/apache/arrow/tree/master/cpp/src/arrow/flight>
Regards,
Benson
On 12/10/21 10:20 AM, HSU YU-MING wrote:
> Hi Benson:
>
> Yes, that php client is running as web server,so i guess i need
to use
> php-cpp, but i am very new beginning on php side, is it possible to
> provide some sample code with arrow flight to me?
>
> Thanks,
> Abe
>
> Benson Muite <[email protected]
<mailto:[email protected]>
> <mailto:[email protected]
<mailto:[email protected]>>>於 2021年12月10日 週五,下午
2:17寫道:
>
> On 12/10/21 8:39 AM, HSU YU-MING wrote:
> > Hi All:
> >
> > I create an arrow-flight server with python as my backend
server.
> And I
> > have the other application written by PHP as client side.
There are
> > rarely information talking about apache arrow with php.
> > Is it possible to use arrow flight as client inside php?
if yes,
> do we
> > have any example to do that?
> > I will very appreciate that.
> >
> >
> > Many Thanks,
> > Abe
> Hi Abe,
>
> At the moment there is no direct PHP integration, either
bindings or an
> implementation. Is PHP running a web service? If so could you
use C++
> and integrate with that for example using
http://www.php-cpp.com/ <http://www.php-cpp.com/>
> <http://www.php-cpp.com/ <http://www.php-cpp.com/>>?
>
> Another option might be to use Javascript if you only need
client side
> integration in a browser? Some documentation is available at:
> https://arrow.apache.org/docs/js/
<https://arrow.apache.org/docs/js/>
<https://arrow.apache.org/docs/js/ <https://arrow.apache.org/docs/js/>>
> Flight is not integrated yet, but this can be extended.
>
> Regards,
> Benson
>