[ 
https://issues.apache.org/jira/browse/NIFI-6484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16892778#comment-16892778
 ] 

Michael Moser commented on NIFI-6484:
-------------------------------------

Hi [~thuylevn]!  It looks like you have mounted a persistent volume on top of 
the container's /opt/nifi/nifi-current/conf directory.  Since this is where 
NiFi looks for its nifi.properties and other configuration files on startup, 
you have to make sure that your persistent volume has those files.  I'm not 
exactly sure of the best way to initialize your persistent volume with those 
files.

You might also look at NIFI-6071

 

> sed: can't read /opt/nifi/nifi-current/conf/nifi.properties
> -----------------------------------------------------------
>
>                 Key: NIFI-6484
>                 URL: https://issues.apache.org/jira/browse/NIFI-6484
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Docker
>    Affects Versions: 1.9.2
>         Environment: image: "apache/nifi:latest", GKE (Google Kubernetes 
> Engine)
>            Reporter: thuy le
>            Assignee: Michael Moser
>            Priority: Major
>
>  I meet an issue when I try to deploy apache nifi on GKE (Google Kubernetes 
> Engine)
>   sed: can't read /opt/nifi/nifi-current/conf/nifi.properties
>  
> [!https://user-images.githubusercontent.com/24593553/61722336-17c3ea00-ad38-11e9-830a-e4fe56a7acb6.png|width=470,height=136!|https://user-images.githubusercontent.com/24593553/61722336-17c3ea00-ad38-11e9-830a-e4fe56a7acb6.png]
>  
> yalm file
> ---
> apiVersion: v1
> kind: PersistentVolumeClaim
> metadata:
>   name: nificonf-claim
> spec:
>   accessModes: [ "ReadWriteOnce" ]
>   storageClassName: "standard"
>   resources:
>     requests:
>       storage: 3Gi
> ---
> apiVersion: "apps/v1"
> kind: "Deployment"
> metadata:
>   name: "nificonf"
>   namespace: "default"
>   labels:
>     app: "nificonf"
> spec:
>   replicas: 1
>   selector:
>     matchLabels:
>       app: "nificonf"
>   template:
>     metadata:
>       labels:
>         app: "nificonf"
>     spec:
>       securityContext:
>         runAsUser: 1000 
>         fsGroup: 1000    
>       containers:
>       - name: "nificonf"
>         image: "apache/nifi:latest"
>         ports:
>         - containerPort: 8080
>         volumeMounts:
>           - name: nificonf-data  
>             mountPath: /opt/nifi/nifi-current/conf
>       volumes:
>         - name: nificonf-data
>           persistentVolumeClaim:
>             claimName: nificonf-claim
> ---
> apiVersion: "autoscaling/v2beta1"
> kind: "HorizontalPodAutoscaler"
> metadata:
>   name: "nificonf-hpa"
>   namespace: "default"
>   labels:
>     app: "nificonf"
> spec:
>   scaleTargetRef:
>     kind: "Deployment"
>     name: "nificonf"
>     apiVersion: "apps/v1"
>   minReplicas: 1
>   maxReplicas: 1
>   metrics:
>   - type: "Resource"
>     resource:
>       name: "cpu"
>       targetAverageUtilization: 80



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to