This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <string> | |
| class Foo { | |
| public: | |
| Foo() : bar("foobar") {} | |
| std::string bar; | |
| }; | |
| extern "C" void CreateFoo(void** handle) { | |
| *handle = static_cast<void*>(new Foo()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Compile HDFS native library from source | |
| cd | |
| wget http://mirrors.advancedhosters.com/apache/hadoop/common/hadoop-3.1.1/hadoop-3.1.1-src.tar.gz | |
| tar xvf hadoop-3.1.1-src.tar.gz | |
| cd hadoop-3.1.1-src/hadoop-hdfs-project/hadoop-hdfs-native-client | |
| CC=gcc-8 CXX=g++-8 mvn compile -Pnative # Use Homebrew GCC | |
| # Create HDFS home under the home directory |
NewerOlder