chukwa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Yang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CHUKWA-736) SSL for agent rest api and rest adaptor
Date Sat, 21 Feb 2015 18:57:11 GMT

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

Eric Yang commented on CHUKWA-736:
----------------------------------

Shreyas, it looks like the test case doesn't setup some environment properly.  Here are the
errors during test:

-------------------------------------------------------------------------------
Test set: org.apache.hadoop.chukwa.datacollection.agent.TestChukwaSsl
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.295 sec <<< FAILURE!
testRestServer(org.apache.hadoop.chukwa.datacollection.agent.TestChukwaSsl)  Time elapsed:
0.271 sec  <<< ERROR!
java.lang.NullPointerException
        at org.apache.hadoop.chukwa.datacollection.agent.TestChukwaSsl.testRestServer(TestChukwaSsl.java:40)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:243)
        at junit.framework.TestSuite.run(TestSuite.java:238)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
        at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
        at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:81)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)

And it's caused by:

java.io.FileNotFoundException: /Users/eric/sandbox/chukwa/o/trunk/target/test/share/chukwa/lib/agent.dict
(No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at edu.berkeley.confspell.OptDictionary.read(OptDictionary.java:59)
        at edu.berkeley.confspell.OptDictionary.<init>(OptDictionary.java:16)
        at org.apache.hadoop.chukwa.util.ChukwaUtil.readConfiguration(ChukwaUtil.java:68)
        at org.apache.hadoop.chukwa.datacollection.agent.TestChukwaSsl.testRestServer(TestChukwaSsl.java:38)

We probably want to do a resource copy from source's lib/agent.dict to target/test to mirror
the CHUKWA_HOME during test phase.

> SSL for agent rest api and rest adaptor
> ---------------------------------------
>
>                 Key: CHUKWA-736
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-736
>             Project: Chukwa
>          Issue Type: Improvement
>          Components: Data Collection
>    Affects Versions: 0.7.0
>            Reporter: shreyas subramanya
>            Assignee: shreyas subramanya
>         Attachments: CHUKWA-736.patch, CHUKWA-736.patch2
>
>
> Users can optionally enable https for agent rest api and RestAdaptor. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message