Posts

Showing posts from November, 2021

Window search error

Don't search on all tab. You can find app, document,setting. Click on app then search

Eclipse Errors

1. Collapse symbol on the left side vanish. Cannot collapse anymore. To toggle the collapse enable/disable. [ctrl + /]. / from numpad.

OpenWhisk In linux

## Contents - [Local Environment](#local-environment) - [WSK CLI](#wsk-cli) - [Deploy Python Action](python-action) - [Deploy Java Action](java-action) - [Deploy JS API](deploy-js-api) - [Deploy Python API](deploy-python-api) - [Deploy Java API](deploy-java-api) ## Local Environment Download open whisk for local environment: This program runs on the local environment as docker. `Docker, NPM and java` should be installed to run this environment. Set up the runtime environment for running the application. installing the gradle in the local computer will set up all the required environment for the computer. ### a) Install gradle in local computer: ``` sudo apt install gradle ``` ### b) download openwhisk app for running locally via git git clone https://github.com/apache/openwhisk.git ### c) run app in the local environment: ``` sudo ./gradlew core:standalone:bootRun ``` ### d) set the wsk property for wsk commands, this line will be available on the same terminal where the

JAVA_HOME not found in linux

  The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE. Commands: nano etc/profile export JAVA_HOME="/usr/lib/jvm/jdk1.8.0_311" export PATH=$PATH:$JAVA_HOME/bin export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_311 sudo gedit /etc/environment Add "JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"" to /etc/environment Description of command:  1) This is the place to give the variable JAVA_HOME the value of the jdk.  JDK from oracle is preferred.  After editing the file, laptop should restart, so that the value will be set. 2, 3)  This two line should be added.  When we give this JAVA_HOME a path, this path will be global variable all around the Linux. 4) If after this also there is error:  give 4th command to terminal: We need to update in other places as well. 5,6). We need to update in environment variable as well. Remark: This folder 'jdk1.8.0_311' is do

OpenWhisk - Thumbnail application

 1. Commands ./gradlew core:standalone:bootRun sudo docker ps wsk property set --apihost 'http://172.17.0.1:3233' --auth '23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP' wsk action invoke action1 --blocking --param name Himal wsk action invoke action1 --blocking wsk action update action1 action1.js  wsk activation get e1440027233f40f5840027233f40f588 wsk action invoke action1 wsk action create action1 action1.js wsk namespace list wsk action list