Deploy the Sample Portlets

Viewpoint
Teradata Viewpoint is Teradata's strategic and innovative SOV (single operational view) for Teradata DB, Aster, and HDP Hadoop systems management and monitoring that enables Teradata's Unified Data Architecture (UDA).
Teradata Employee

Deploy the Sample Portlets

This tutorial describes how to deploy a portlet into the Viewpoint Development Portal.

  1. Open a command prompt window.
  2. Navigate to the top-level directory of the portlet you want to deploy (the directory containing the build.xml file for the portlet).
  3. Run the following command: ant deploy

Here is an example, assuming the Widgetopia sample portlet is located at C:\tdpdk-xx.xx.xx.xx\src\Hello:

C:
cd \tdpdk-xx.xx.xx.xx\src\Hello
ant deploy

The ant deploy progress is displayed in the Tomcat window. When the portlet deployment is complete, your new portlet should be available under the Add Content menu in your Teradata Viewpoint Portal. Note: the CATALINA_HOME environment variable must previously have been set. See Installing the Viewpoint Development Portal for more details.

See Ant Targets for more detail about ant deploy and other useful ant targets.

Note that when the Teradata Viewpoint Portal is installed, the Sample Portlets are deployed by default. That is, on first startup of Teradata Viewpoint, the portlets are present. You can safely deploy on top of an existing portlet using the normal ant deploy target, or undeploy the portlet using ant undeploy.

Tags (3)
13 REPLIES
N/A

Re: Deploy the Sample Portlets

When I tried to do the c:\ant deploy under the Widetopia directory, i got the following.

C:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\Widgetopia>ant deploy
Buildfile: build.xml
[get] Getting: http://continuum.td.teradata.com/svn/NextGen/BuildConfig/trunk/bootstrap.build.xml
[get] To: C:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\Widgetopia\.bootstrap.build.xml
[get] Error getting http://continuum.td.teradata.com/svn/NextGen/BuildConfig/trunk/bootstrap.build.xml to C:\Bills_Programs\
viewpoint\tdpdk-13.00.00.01\src\Widgetopia\.bootstrap.build.xml

init:
[mkdir] Created dir: C:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\Widgetopia\.buildconfig
[get] Getting: http://continuum.td.teradata.com/ivyrep-sandbox/teradata/build-config/2.0-SNAPSHOT/build-config.zip
[get] To: C:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\Widgetopia\.buildconfig\build-config.zip
[get] Error getting http://continuum.td.teradata.com/ivyrep-sandbox/teradata/build-config/2.0-SNAPSHOT/build-config.zip to C
:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\Widgetopia\.buildconfig\build-config.zip

BUILD FAILED
C:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\Widgetopia\build.xml:10: The following error occurred while executing this line:

C:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\Widgetopia\.bootstrap.build.xml:21: java.net.UnknownHostException: continuum.td.
teradata.com

Total time: 2 seconds

Any ideas as to what I might be missing?

Re: Deploy the Sample Portlets

You don't have to deploy Widgetopia to get it on viewpoint. All you have to do is run the portal and it should be there.
N/A

Re: Deploy the Sample Portlets

I know, but I was trying to follow the above tutorial on how to deploy a portlet, but i get the errors above
Teradata Employee

Re: Deploy the Sample Portlets

@Tuen: check out this forum post: http://www.teradata.com/teradataforum/Topic15269-53-1.aspx

There's a bug that shows up on some operating systems. Basically, you need to add ignoreerrors="true" to the stanzas on lines 14 and 21 of the ".bootstrap.build.xml" file in your portlet's project directory.
Teradata Employee

Re: Deploy the Sample Portlets

When I try to deploy a self created portlet I always get an error message. I get the same message when I try to redeploy the sample portlets. Can anyone help?

C:\tdpdk-13.00.00.01\MyHello>ant deploy
Buildfile: C:\tdpdk-13.00.00.01\MyHello\build.xml
[get] Getting: http://continuum.td.teradata.com/svn/NextGen/BuildConfig/trunk/bootstrap.build.xml
[get] To: C:\tdpdk-13.00.00.01\MyHello\.bootstrap.build.xml
[get] Not modified - so not downloaded

init:

bootstrap:

clean-help:

tdbuild-base.clean-build:

tdbuild-web-base.clean-build:
[delete] Deleting directory C:\tdpdk-13.00.00.01\MyHello\web\WEB-INF\classes

clean-build:

clean-doc:

clean-dist:

load-ac-tasks:

tdbuild-base.clean-dependencies:

BUILD FAILED
C:\tdpdk-13.00.00.01\MyHello\.buildconfig\buildfiles\base.build.xml:87: and doesn't support the nested "equals" element.

Total time: 3 seconds
Teradata Employee

Re: Deploy the Sample Portlets

It works now for me ...

Before I had the following configuration: ANT 1.8.0, PostgreSQL 8.4 and PDK 13.00.00.01 now I changed to: ANT 1.7.0, PostgreSQL 8.2 and PDK 13.00.01.01 and it works fine ...
Teradata Employee

Re: Deploy the Sample Portlets

ant1.8.1 doesn't work for postgres8.4.4 and PDK13.02.00.03, ant1.7.1 works just fine.

Re: Deploy the Sample Portlets

Hi, I have successfully installed the viewpoint PDK and can add the sample portlets to ny page, but is there any reason that the skewed sessions and dynamicquery show as "DynamicQuery is temporarily unavailable."
How do we get these working? I tried to go into the Admin and Teradata Systems, but it just appears to hang there and not allow me to see any systems or setup connections to a system!

Re: Deploy the Sample Portlets

I also have a couple of follow up questions - How do we deploy a portlet into the actual Viewpoint server once we have created it? There does not appear to be Ant software installed on the viewpoint server. Do we have to install this ourselves and what other software do we need to install?