Like what you see? Have a play with our trial version.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added troubleshooting tip

...

  1. Install the full application installer version of Yellowfin on your workstation (this is temporary to ensure the repo DB is available for the containers to use)
  2. Copy the web.xml file from this installation and save it as a backup to your preferred location (this acts as a reference for the Yellowfin credentials required to connect to your Yellowfin repo DB)
  3. Ensure Kubernetes is running and that Traefik has been installed 
  4. Copy the following text and paste it into your preferred text editor:

    Code Block
    languageyml
    ---  
    ### Yellowfin Cluster Service ###  
    apiVersion: v1  
    kind: Service  
    metadata:  
      name: yellowfin-cluster
    
    spec:  
      ports:  
        - protocol: TCP  
          name: web  
          port: 8080  
      selector:  
        app: yellowfin-cluster  
    ---  
    ### Yellowfin Cluster Deployment ###  
    kind: Deployment  
    apiVersion: apps/v1  
    metadata:  
      namespace: default  
      name: yellowfin-cluster  
      labels:  
        app: yellowfin-cluster  
    
    spec:  
      replicas: 2  
      selector:  
        matchLabels:  
          app: yellowfin-cluster  
      template:  
        metadata:  
          labels:  
            app: yellowfin-cluster  
        spec:  
          containers:  
            - env:  
              - name: APP_MEMORY  
                value: "6144"  
              - name: CLUSTER_PORT  
                value: "7800"  
              - name: JDBC_CLASS_NAME  
                value: INSERT_DATABASE_TYPE_HERE  
              - name: JDBC_CONN_ENCRYPTED  
                value: "true"  
              - name: JDBC_CONN_PASS  
                value: INSERT_JDBC_PASSWORD_HERE  
              - name: JDBC_CONN_URL  
                value: jdbc:INSERT_JDBC_CONNECTION_STRING_HERE  
              - name: JDBC_CONN_USER  
                value:INSERT_DATABASE_USER_HERE  
              - name: NODE_BACKGROUND_TASKS  
                value: REPORT_BROADCAST_BROADCASTTASK,REPORT_BROADCAST_MIREPORTTASK,FILTER_CACHE,SOURCE_FILTER_REFRESH,SOURCE_FILTER_UPDATE_REMINDER,THIRD_PARTY_AUTORUN,ORGREF_CODE_REFRESH,ETL_PROCESS_TASK,SIGNALS_DCR_TASK,SIGNALS_ANALYSIS_TASK,SIGNALS_CLEANUP_TASK,COMPOSITE_VIEW_REFRESH,SIGNALS_CORRELATION_TASK  
              - name: NODE_PARALLEL_TASKS  
                value: 4,4,4,4,4,4,4,4,4,4,4,4,4  
              name: yellowfin-cluster  
              image: yellowfinbi/yellowfin-app-only:<RELEASE_VERSION_GOES_HERE>  
              ports:  
                - name: web  
                  containerPort: 8080  
    
    ---  
    ### Yellowfin Cluster Ingress ###  
    apiVersion: traefik.containo.us/v1alpha1  
    kind: IngressRoute  
    metadata:  
      name: yellowfiningressroute  
      namespace: default  
    spec:  
      entryPoints:  
        - webs  
      routes:  
      - match: Host(`INSERT_DNS_HOSTNAME`)  
        kind: Rule  
        services:  
        - name: yellowfin-cluster  
          port: 8080  
          sticky:  
            cookie:  
              httpOnly: true  
              name: stickyCookie  


  5. Read through the above text and replace the database connection settings with your own configuration details (these are located in the web.xml file of the Yellowfin installation)

  6. In the text above, replace the text INSERT_DNS_HOSTNAME with your own DNS name (or IP address) for Traefik to listen to, for routing requests to the Yellowfin instance. In the example below, we've added an example DNS name:

    Code Block
    languageyml
    ### Yellowfin Cluster Ingress ###  
    apiVersion: traefik.containo.us/v1alpha1  
    kind: IngressRoute  
    metadata:  
      name: yellowfiningressroute  
      namespace: default  
    spec:  
      entryPoints:  
        - webs  
      routes:  
      - match: Host(`yellowfin.example.com`)  
        kind: Rule  
        services:  
        - name: yellowfin-cluster  
          port: 8080  
          sticky:  
            cookie:  
              httpOnly: true  
              name: stickyCookie 


  7. Save the text to a YAML file called yellowfin-cluster.yml 

  8. Run the following command in a terminal to deploy Yellowfin and execute it in the background:
    Kubectl apply –f yellowfin-cluster.yml 

  9.  Start Yellowfin by typing your host URL

  10. Ensure that Yellowfin is running from your cluster and that you can login (this confirms that your login credentials are correct, so you can safely delete the workstation instance of Yellowfin)

  11. Delete the workstation instance of Yellowfin by removing the folder

Tip

If you’re using AWS EKS, or having issues clustering your Yellowfin instances, merge the following environment variable CLUSTER_INTERFACE and value into the containers section of your Kubernetes deployment file:

Code Block
languagetext
containers:
	-env
		name: CLUSTER_INTERFACE
		value: "match-interface:eth1"




Styleclass
ClasstopLink

top


...