I installed both versions.
But I got problems in both.
import hail works ok
Problem when I call the context hl.init()
I get the error:
TypeError: ‘JavaPackage’ object is not callable
I checked the jar path and it is correct.
I would appreciate your advice.
Regards,
Octavio
We recommend you use 0.2. Can you open a new terminal window and try following the directions again here for Hail 0.2 with Spark 2.2.0? If that doesn’t work, can you do the following and report back on what it says?
Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import hail as l
>>> l.init()
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<decorator-gen-68>", line 2, in init
File "/Users/juarezespinosoh/hail2/hail/python/hail/typecheck/check.py", line 490, in _typecheck
return __orig_func__(*args_, **kwargs_)
File "/Users/juarezespinosoh/hail2/hail/python/hail/context.py", line 160, in init
default_reference, force_ir)
File "<decorator-gen-66>", line 2, in __init__
File "/Users/juarezespinosoh/hail2/hail/python/hail/typecheck/check.py", line 481, in _typecheck
return __orig_func__(*args_, **kwargs_)
File "/Users/juarezespinosoh/hail2/hail/python/hail/context.py", line 54, in __init__
min_block_size, branching_factor, tmp_dir, force_ir)
TypeError: 'JavaPackage' object is not callable
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
============
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
When I try to compile the source code for spark:
./gradlew -Dspark.version=2.2.0 shadowJar
It does not finish:
c++ -fvisibility=hidden -dynamiclib -O3 -march=native -g -std=c++11 -Ilibsimdpp-2.0-rc2 -Wall -Werror -fPIC -ggdb ibs.o davies.o -o lib/darwin/libhail.dylib
:compileScala
/Users/juarezespinosoh/hail3/hail/src/main/scala/is/hail/expr/ir/Compile.scala:129: inferred existential type (String, is.hail.expr.types.TAggregable, scala.reflect.ClassTag[_$1]) forSome { type $1 }, which cannot be expressed by wildcards, should be enabled
by making the implicit value scala.language.existentials visible.
This can be achieved by adding the import clause ‘import scala.language.existentials’
or by setting the compiler option -language:existentials.
See the Scaladoc for value scala.language.existentials for a discussion
why the feature should be explicitly enabled.
val env = ((aggName, aggType, TypeToIRIntermediateClassTag(aggType)) +: args).zipWithIndex
^
/Users/juarezespinosoh/hail3/hail/src/main/scala/is/hail/io/LoadMatrix.scala:297: inferred existential type (Array[String], Array[$1]) forSome { type $1 }, which cannot be expressed by wildcards, should be enabled
by making the implicit value scala.language.existentials visible.
val (rowFieldNames, colIDs) = splitHeader(header1, nAnnotations, nCols)
^
/Users/juarezespinosoh/hail3/hail/src/main/scala/is/hail/rvd/OrderedRVD.scala:230: inferred existential type org.apache.spark.broadcast.Broadcast[is.hail.utils.IntervalTree[$1]] forSome { type $1 }, which cannot be expressed by wildcards, should be enabled
by making the implicit value scala.language.existentials visible.
val intervalsBc = rdd.sparkContext.broadcast(intervals)
^
/Users/juarezespinosoh/hail3/hail/src/main/scala/is/hail/expr/AST.scala:612: match may not be exhaustive.
It would fail on the following inputs: Apply(, _, ), ApplyMethod(, _, _, ), ArrayConstructor(, ), BaseStructConstructor(), Const(, _, ), If(, _, _, ), Lambda(, _, ), Let(, _, ), ReferenceGenomeDependentFunction(, _, _, ), Select(, _, _)
val identifiers = args.tail.map {
Hi,
Thanks is working. I am with the tutorials. I was not able to get some data for ssl problem. Could you advise?
File “/Users/juarezespinosoh/hail2/hail/python/hail/utils/tutorial.py”, line 65, in get_1kg