Skip to content

Instantly share code, notes, and snippets.

View jayunit100's full-sized avatar
🎯
Focusing

jay vyas jayunit100

🎯
Focusing
View GitHub Profile
Caused by: org.teiid.net.CommunicationException: TEIID20018 Unable to find a component used authenticate on to Teiid
at org.teiid.net.socket.SocketServerConnection.selectServerInstance(SocketServerConnection.java:147)
at org.teiid.net.socket.SocketServerConnection.<init>(SocketServerConnection.java:95)
at org.teiid.net.socket.SocketServerConnectionFactory.getConnection(SocketServerConnectionFactory.java:316)
at org.teiid.jdbc.SocketProfile.connect(SocketProfile.java:64)
... 21 more
Caused by: org.teiid.core.TeiidComponentException: Java heap space
at org.teiid.client.util.ExceptionUtil.convertException(ExceptionUtil.java:65)
at org.teiid.net.socket.SocketServerInstanceImpl$RemoteInvocationHandler.invoke(SocketServerInstanceImpl.java:424)
Caused by: org.teiid.net.CommunicationException: TEIID20018 Unable to find a component used authenticate on to Teiid
I have a teiid database that seems to work well with psql client queries, but jdbc queries lead to OOME exceptions on connection creation:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!-- Parent -->
<parent>
<groupId>org.jboss</groupId>
<artifactId>jboss-parent</artifactId>
<version>20</version>
</parent>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!-- Parent -->
<parent>
<groupId>org.jboss</groupId>
<artifactId>jboss-parent</artifactId>
<version>20</version>
</parent>
<!-- Model Version -->
<modelVersion>4.0.0</modelVersion>
@jayunit100
jayunit100 / gist:851559a8d83cc9c020c02a7dbb67cb66
Last active June 15, 2016 17:31
openshift-spark-arquillian
kind: Template
apiVersion: v1
template: spark
metadata:
name: spark
labels:
application: spark
objects:
- kind: Service
-------------------------------------------------------------------------------
Test set: org.jboss.test.arquillian.ce.jdg.SparkTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.638 sec <<< FAILURE! - in org.jboss.test.arquillian.ce.jdg.SparkTest
org.jboss.test.arquillian.ce.jdg.SparkTest Time elapsed: 3.637 sec <<< ERROR!
org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy template: https://gist.githubusercontent.com/jayunit100/851559a8d83cc9c020c02a7dbb67cb66/raw/9225879a7f4af69cc50a22711c9113429963d1fb/gistfile1.txt
Caused by: java.lang.NullPointerException
kind: Template
apiVersion: v1
template: spark
metadata:
name: spark
labels:
app: sparktemplateforkedfromxpassspark
objects:
- kind: Service
@jayunit100
jayunit100 / xpass-spark.yaml
Last active June 30, 2016 19:50
xpass-spark-2
kind: Template
apiVersion: v1
template: spark
metadata:
name: spark
labels:
app: sparktemplateforkedfromxpassspark
objects:
- kind: Service
@jayunit100
jayunit100 / Dockerfile
Created August 10, 2016 01:51
sbt unit test dockerfile
FROM ce-registry.usersys.redhat.com/apache-spark-2/spark20-hadoop27-openshift:2.0
USER root
RUN /opt/spark/bin/pyspark --version 2>&1 | grep version | cut -d'n' -f 2 | xargs > /tmp/SPARK_VERSION
RUN cat /tmp/SPARK_VERSION
RUN curl -o /tmp/$(cat /tmp/SPARK_VERSION).tgz https://dist.apache.org/repos/dist/release/spark/spark-$(cat /tmp/SPARK_VERSION)/spark-$(cat /tmp/SPARK_VERSION).tgz
RUN cd /tmp/ && tar -zxvf /tmp/2.0.0-preview.tgz
RUN yum-config-manager --nogpgcheck --add-repo http://mirror.centos.org/centos/7/os/x86_64/
RUN yum install --nogpgcheck -y git
@jayunit100
jayunit100 / test_context.go
Last active August 25, 2016 13:32
viper gist hacking
// Enable viper configuration management. This is required to
// 1) Feature: Allow files/etcd/other dynamic configuration setup.
// 2) Fix a Bug: Avoid transitive dependencies on flag.
func ViperizeAndCreateMockFlags() {
fmt.Println(
"flags: ",
"\n pflag:",flag.Args(),
"\n goflag:",goflag.Args(),
" rem:",flag.NArg()," ",goflag.NArg())