I am trying to use a library from Piggybank and it's giving me some errors.
This is my code:
REGISTER /usr/lib/pig/piggybank.jar;
DEFINE CSVExcelStorage org.apache.pig.piggybank.storage.CSVExcelStorage;
a = LOAD 'csvtest/' USING CSVExcelStorage()
And the errors:
2015-09-15 00:18:15,480 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 101: file '/usr/lib/pig/piggybank.jar' does not exist.
I followed the instructions from this guide, PiggyBank, and already built the project.
Should I move piggybank.jar to /usr/lib/pig/piggybank.jar?
Thanks.
REGISTER <path of piggybank jar>;
You need you specify the path of the jar in your local system where you have extracted the pig.
For example this the path for me:
/Users/username/pig-0.13.0/lib/piggybank.jar
Had similar trouble where I used: REGISTER 'hdfs:///usr/lib/pig/piggybank.jar'
Related
I am trying to generate files using the square's Wire. I could run their sample all good, but as soon as I added
import "google/protobuf/timestamp.proto"; to their .proto file
to check how wire treats timestamps, compiler broke with this exception:
Exception in thread "main" java.io.FileNotFoundException: Failed to locate google/protobuf/timestamp.proto in [src/main/proto]
I have protoc in my path ($PATH=...usr/local/bin, protoc is located in there. timestamp.proto is located under /usr/local/include/google/protobuf). I expected wire compiler to use protoc from my system and therefore to be able to use it's includes.
Tried running wire with gradle plugin and using precompiled jar to same result.
UPDATE:
Also tried using gradle plugin in android studio project to same extent.
* What went wrong:
Execution failed for task ':app:generateProtos'.
> unable to resolve 1 imports:
google/protobuf/timestamp.proto
searching 0 proto paths:
Ok, after some searching and experimenting, turns out that:
1) Wire doesn't support proto3 syntax (yet)
2) Timestamp is written in proto3 syntax, and so wire just doesn't support it too.
So answer is - you can't import timestamp.proto and use it to generate classes with wire until proto3 support is implemented.
Wire now supports Proto3 and the new types, including Timestamp.
You can check the differences in implementation here: https://square.github.io/wire/wire_vs_protoc/
I'm trying to use Gmagick from codeception, and i get:
[Error] Class 'Helper\Gmagick' not found
or if i try calling Gmagick(); directly from the test:
[Error] Class 'Gmagick' not found
I've set up Gmagick and can use it i.e. if i create a standalone *.php file on my apache server, i can call Gmagick(); without ever declaring anything else.
If I try the same from within Codeception, I get aforementioned error. I suppose there's some simple fix to this but I can't get any useful info from Codeception's documentation, and i can't find any useful info on the internet/SO either.
Any help would be appreciated. Thank You :)
if I use following load command
A = LOAD '/home/mapr/resoucr' using PigStorage(',');
It throws following error:
org.apache.hadoop.conf.Configuration.deprecation - io.bytes.per.checksum is deprecated. Instead, use dfs.bytes-per-checksum
These are the deprecation warnings. Possibly you are lacking in newer hadoop configuration.
To get rid of this, you need to update your hadoop configuration files.
I am playing with Yii framework and now I am investigating Yii Shell. But if I use this command:
yiic shell
I always get this error message:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_oci.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
libdc1394 error: Failed to initialize libdc1394
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_oci.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
Error: index.php does not exist or is not an entry script file.
It is strange for me, because I am gonna to use only mySQL drivers, so why Oracle now? Any idea?
Many thanks for your replies!
Jakub
Please install Oracle client and Open your php.ini, search for oci8.so and php_oci.so, in extensions section you should have something like extension=oci8.so and extension=pdo_oci.so, just comment it with ;. If You have extension=oci8_11g.so comment it as well"
Open your php.ini, search for oci8.so and php_oci.so, in extensions section you should have something like extension=oci8.so and extension=pdo_oci.so, just comment it with ;. If You have extension=oci8_11g.so comment this as well
I have software that first loads a .dylib lets call libFirst.dylib using the following command:
void* handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_GLOBAL);
Later on inside a function from the loaded libFirst.dylib I attempt to load another .dylib using the same command but for libSecond.dylib, the loading of this shared library gives me the following warnings in my Xcode console:
error warning: Ignored unknown object module at 0x129310 with type 0x8a8399
dlerror: dlopen(/path/libSecond.dylib, 9): Library not loaded: libFirst.dylib
Referenced from: /path/libSecond.dylib
Reason: image not found
What I don't get is that its says libFirst.dylib is not loaded but I am currently inside a function from libFirst.dylib, so how can this be?
All my paths in DYLD_LIBRARY_PATH appear correct too.
Thanks in advance, I have been stuck on this for days.
I ended up using -install_name to change the install name of all my libraries to #rpath/dylibName.dylib and then in Xcode I set the Runpath Search paths using #loader_path to find all my .dylibs that I was using.
use:
install_name_tool -id #executable_path/../Frameworks/mylib.dylib mylib.dylib
then check it with:
otool -D mylib.dylib
I think an easier way to get around this error would be to revert to an earlier version where you were not getting this error. Right click on the project folder and navigate to local history to revert to an earlier version. I verified this to be working on the android studio installed on Mac OS Big sur.