First Hail Query

Getting following error:
Could you please help
atanu@atanu-Z2-Workstation:~$ python3.6
Python 3.6.13 (default, Feb 20 2021, 21:40:46)
[GCC 9.3.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import hail as hl
mt = hl.balding_nichols_model(n_populations=3,
… n_samples=10,
… n_variants=100)
Initializing Hail with default parameters…
2021-03-17 17:47:23 WARN Utils:66 - Your hostname, atanu-Z2-Workstation resolves to a loopback address: 127.0.1.1; using 192.168.100.198 instead (on interface eno1)
2021-03-17 17:47:23 WARN Utils:66 - Set SPARK_LOCAL_IP if you need to bind to another address
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.spark.unsafe.Platform (file:/home/atanu/.local/lib/python3.6/site-packages/pyspark/jars/spark-unsafe_2.11-2.4.1.jar) to method java.nio.Bits.unaligned()
WARNING: Please consider reporting this to the maintainers of org.apache.spark.unsafe.Platform
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2021-03-17 17:47:23 WARN NativeCodeLoader:62 - Unable to load native-hadoop library for your platform… using builtin-java classes where applicable
Setting default log level to “WARN”.
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
2021-03-17 17:47:23 WARN Hail:43 - This Hail JAR was compiled for Spark 2.4.5, running with Spark 2.4.1.
Compatibility is not guaranteed.
Traceback (most recent call last):
File “”, line 3, in
File “”, line 2, in balding_nichols_model
File “/home/atanu/.local/lib/python3.6/site-packages/hail/typecheck/check.py”, line 576, in wrapper
args_, kwargs_ = check_all(_original_func, args, kwargs, checkers, is_method=is_method)
File “/home/atanu/.local/lib/python3.6/site-packages/hail/typecheck/check.py”, line 543, in check_all
args
.append(arg_check(args[i], name, arg_name, checker))
File “/home/atanu/.local/lib/python3.6/site-packages/hail/typecheck/check.py”, line 584, in arg_check
return checker.check(arg, function_name, arg_name)
File “/home/atanu/.local/lib/python3.6/site-packages/hail/typecheck/check.py”, line 82, in check
return tc.check(x, caller, param)
File “/home/atanu/.local/lib/python3.6/site-packages/hail/typecheck/check.py”, line 328, in check
return f(tc.check(x, caller, param))
File “/home/atanu/.local/lib/python3.6/site-packages/hail/genetics/reference_genome.py”, line 10, in
reference_genome_type = oneof(transformed((str, lambda x: hl.get_reference(x))), rg_type)
File “/home/atanu/.local/lib/python3.6/site-packages/hail/context.py”, line 536, in get_reference
Env.hc()
File “/home/atanu/.local/lib/python3.6/site-packages/hail/utils/java.py”, line 55, in hc
init()
File “”, line 2, in init
File “/home/atanu/.local/lib/python3.6/site-packages/hail/typecheck/check.py”, line 577, in wrapper
return original_func(*args, **kwargs)
File “/home/atanu/.local/lib/python3.6/site-packages/hail/context.py”, line 234, in init
skip_logging_configuration, optimizer_iterations)
File “/home/atanu/.local/lib/python3.6/site-packages/hail/backend/spark_backend.py”, line 174, in init
self._jbackend, log, True, append, branching_factor, skip_logging_configuration, optimizer_iterations)
File “/home/atanu/.local/lib/python3.6/site-packages/py4j/java_gateway.py”, line 1257, in call
answer, self.gateway_client, self.target_id, self.name)
File “/home/atanu/.local/lib/python3.6/site-packages/py4j/protocol.py”, line 328, in get_return_value
format(target_id, “.”, name), value)
py4j.protocol.Py4JJavaError: An error occurred while calling z:is.hail.HailContext.apply.
: is.hail.utils.HailException: Hail requires Java 8, found 11.0.10
at is.hail.utils.ErrorHandling$class.fatal(ErrorHandling.scala:11)
at is.hail.utils.package$.fatal(package.scala:77)
at is.hail.HailContext$.checkJavaVersion(HailContext.scala:100)
at is.hail.HailContext$.apply(HailContext.scala:136)
at is.hail.HailContext.apply(HailContext.scala)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
at py4j.Gateway.invoke(Gateway.java:282)
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:238)
at java.base/java.lang.Thread.run(Thread.java:834)

mt.show()
Traceback (most recent call last):
File “”, line 1, in
NameError: name ‘mt’ is not defined

The relevant error is:

            : is.hail.utils.HailException: Hail requires Java 8, found 11.0.10