Comments (6)
@snorristurluson you have any pointers for increasing the memory limit of the gor shell?
from gor.
That's strange, the gor shell isn't set up any different from gorpipe.
Try the following to control the memory given to the JVM:
export JAVA_OPTS=-Xms2G -Xmx5G
from gor.
It is Interesting. JAVA_OPTS bring new error. Here is the command I used:
export JAVA_OPTS="-Xms2G -Xmx5G"
export MODULEPATH=/share/apps/compute/modulefiles/applications:$MODULEPATH
module load gor
cd /share/apps/compute/gor/
/share/apps/compute/gor/tools/build/install/tools/bin/gorshell
gor /home/sguo2/janssen4/oasis/bin/gor/tests/data/gor/dbsnp_test.gor | top 10
Here is the error:
(base) [sguo2@comet-ln2 gor]$ export JAVA_OPTS="-Xms2G -Xmx5G"
(base) [sguo2@comet-ln2 gor]$ export MODULEPATH=/share/apps/compute/modulefiles/applications:$MODULEPATH
(base) [sguo2@comet-ln2 gor]$ module load gor
(base) [sguo2@comet-ln2 gor]$ cd /share/apps/compute/gor/
(base) [sguo2@comet-ln2 gor]$ /share/apps/compute/gor/tools/build/install/tools/bin/gorshell
Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native thread
(base) [sguo2@comet-ln2 gor]$ gor /home/sguo2/janssen4/oasis/bin/gor/tests/data/gor/dbsnp_test.gor | top 10
top: unknown option '1'
Usage:
top -hv | -bcHiOSs -d secs -n max -u|U user -p pid(s) -o field -w [cols]
from gor.
@Shicheng-Guo there are two issues here:
- you should not be using the
gor
command, instead you should be using thegorpipe
command. - when writing
gorpipe
commands, you need to quote the gor query to avoid your shell taking over the parsing of the line.
So try something like this:
gorpipe "/home/sguo2/janssen4/oasis/bin/gor/tests/data/gor/dbsnp_test.gor | top 10"
from gor.
@StFS these two reply really helpful!!
I agree with you gorpipe work well and don't affect linux bash. However, the following script works:
gorpipe /home/sguo2/janssen4/oasis/bin/gor/tests/data/gor/dbsnp_test.gor | head
Thanks.
Shicheng
from gor.
@Shicheng-Guo yes, head
works because that's a valid Linux command. In that case the gorpipe
command is reading and outputting all the rows from the file you're querying but head
is simply ignoring everything but the first few lines.
This is inefficient compared to using the GOR top
command, as that will allow GOR to stop reading the file once it has read the number of rows requested.
from gor.
Related Issues (13)
- Warnings shown when running gorpipe HOT 3
- Segspan for contiguous regions HOT 4
- gorpipe java version error HOT 1
- More functionality in segproj
- Suppress DEBUG messages HOT 6
- manager index render docs? HOT 1
- How to use SparkGOR to perform joint-genotyping?
- ERROR: JAVA_HOME is set to an invalid directory: /usr/java/latest HOT 1
- "make build" report Could not create service of type FileAccessTimeJournal using GradleUserHomeScopeServices.createFileAccessTimeJournal(). HOT 2
- Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed) HOT 2
- gor query vs gor HOT 1
- interactive shell session gorshell make the Linux bash crash HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gor.