rave-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Franklin <m.ben.frank...@gmail.com>
Subject Re: [DISCUSS] Apache Rave 0.19 Release Candidate
Date Wed, 09 Jan 2013 22:51:50 GMT
I think I know what this is.  It shouldn't fail the build, it just
happens because there are no pages in the database and the Map/Reduce
job is failing.

On Wed, Jan 9, 2013 at 5:49 PM, Chris Geer <chris@cxtsoftware.com> wrote:
> On Mon, Jan 7, 2013 at 4:35 PM, Matt Franklin <m.ben.franklin@gmail.com>wrote:
>
>> Discussion thread for vote on 0.19 release candidate.
>>
>> For more information on the release process, checkout -
>> http://www.apache.org/dev/release.html
>>
>> Some of the things to check before voting are:
>> - can you run the demo binaries
>> - can you build the contents of source-release.zip and svn tag
>> - do all of the staged jars/zips contain the required LICENSE and NOTICE
>> files
>> - are all of the staged artifacts signed and the signature verifiable
>> - is the signing key in the project's KEYS file and on a public server
>>
>
> I am getting errors trying to compile the tag with the mongo profile
> active. This is in the rave-portal project.
>
> [mongod output] WARN : org.springframework.data.mongodb.core.MongoTemplate
> - Command execution of { "mapreduce" : "page" , "map" : "/*\n * Licensed to
> the Apache Software Foundation (ASF) under one\n *  or more contributor
> license agreements.  See the NOTICE file\n *  distributed with this work
> for additional information\n *  regarding copyright ownership.  The ASF
> licenses this file\n *  to you under the Apache License, Version 2.0 (the\n
> *  \"License\"); you may not use this file except in compliance\n *  with
> the License.  You may obtain a copy of the License at\n *\n *
> http://www.apache.org/licenses/LICENSE-2.0\n *\n *  Unless required by
> applicable law or agreed to in writing,\n *  software distributed under the
> License is distributed on an\n *  \"AS IS\" BASIS, WITHOUT WARRANTIES OR
> CONDITIONS OF ANY\n *  KIND, either express or implied.  See the License
> for the\n *  specific language governing permissions and limitations\n *
>  under the License.\n */\n\nfunction () {\n    var widgetMap = {};\n    var
> self = this;\n\n    var mapPage = function (page) {\n        if
> (page.regions) {\n            page.regions.forEach(function (region) {\n
>              if (region.regionWidgets) {\n
>  region.regionWidgets.forEach(function (regionWidget) {\n
>      if (!widgetMap[regionWidget.widgetId]) {\n
>  widgetMap[regionWidget.widgetId] = true;\n                            var
> userMap = {};\n                            userMap[self.ownerId] = 1;\n
>                        emit(regionWidget.widgetId, userMap);\n
>            }\n                    })\n                }\n            })\n
>      }\n    };\n\n    mapPage(this);\n    if (this.subPages) {\n
>  this.subPages.forEach(function (p) {\n            mapPage(p)\n        })\n
>    }\n}\n" , "reduce" : "/*\n * Licensed to the Apache Software Foundation
> (ASF) under one\n *  or more contributor license agreements.  See the
> NOTICE file\n *  distributed with this work for additional information\n *
>  regarding copyright ownership.  The ASF licenses this file\n *  to you
> under the Apache License, Version 2.0 (the\n *  \"License\"); you may not
> use this file except in compliance\n *  with the License.  You may obtain a
> copy of the License at\n *\n *
> http://www.apache.org/licenses/LICENSE-2.0\n *\n *  Unless required by
> applicable law or agreed to in writing,\n *  software distributed under the
> License is distributed on an\n *  \"AS IS\" BASIS, WITHOUT WARRANTIES OR
> CONDITIONS OF ANY\n *  KIND, either express or implied.  See the License
> for the\n *  specific language governing permissions and limitations\n *
>  under the License.\n */\n\nfunction (key, values) {\n    var result={};\n
>    values.forEach(function(item){\n        for(var i in item) {\n
>  result[i] = item[i];\n        }\n    });\n    return result;\n}\n" ,
> "verbose" : true , "out" : { "replace" : "user_statistics"}} failed: ns
> doesn't exist
> ERROR:
> org.apache.rave.portal.repository.impl.MongoDbMapReduceStatisticsAggregator
> - Error executing Map/Reduce Statistics Aggregation!
> org.springframework.dao.InvalidDataAccessApiUsageException: Command
> execution failed:  Error [ns doesn't exist], Command = { "mapreduce" :
> "page" , "map" : "/*\n * Licensed to the Apache Software Foundation (ASF)
> under one\n *  or more contributor license agreements.  See the NOTICE
> file\n *  distributed with this work for additional information\n *
>  regarding copyright ownership.  The ASF licenses this file\n *  to you
> under the Apache License, Version 2.0 (the\n *  \"License\"); you may not
> use this file except in compliance\n *  with the License.  You may obtain a
> copy of the License at\n *\n *
> http://www.apache.org/licenses/LICENSE-2.0\n *\n *  Unless required by
> applicable law or agreed to in writing,\n *  software distributed under the
> License is distributed on an\n *  \"AS IS\" BASIS, WITHOUT WARRANTIES OR
> CONDITIONS OF ANY\n *  KIND, either express or implied.  See the License
> for the\n *  specific language governing permissions and limitations\n *
>  under the License.\n */\n\nfunction () {\n    var widgetMap = {};\n    var
> self = this;\n\n    var mapPage = function (page) {\n        if
> (page.regions) {\n            page.regions.forEach(function (region) {\n
>              if (region.regionWidgets) {\n
>  region.regionWidgets.forEach(function (regionWidget) {\n
>      if (!widgetMap[regionWidget.widgetId]) {\n
>  widgetMap[regionWidget.widgetId] = true;\n                            var
> userMap = {};\n                            userMap[self.ownerId] = 1;\n
>                        emit(regionWidget.widgetId, userMap);\n
>            }\n                    })\n                }\n            })\n
>      }\n    };\n\n    mapPage(this);\n    if (this.subPages) {\n
>  this.subPages.forEach(function (p) {\n            mapPage(p)\n        })\n
>    }\n}\n" , "reduce" : "/*\n * Licensed to the Apache Software Foundation
> (ASF) under one\n *  or more contributor license agreements.  See the
> NOTICE file\n *  distributed with this work for additional information\n *
>  regarding copyright ownership.  The ASF licenses this file\n *  to you
> under the Apache License, Version 2.0 (the\n *  \"License\"); you may not
> use this file except in compliance\n *  with the License.  You may obtain a
> copy of the License at\n *\n *
> http://www.apache.org/licenses/LICENSE-2.0\n *\n *  Unless required by
> applicable law or agreed to in writing,\n *  software distributed under the
> License is distributed on an\n *  \"AS IS\" BASIS, WITHOUT WARRANTIES OR
> CONDITIONS OF ANY\n *  KIND, either express or implied.  See the License
> for the\n *  specific language governing permissions and limitations\n *
>  under the License.\n */\n\nfunction (key, values) {\n    var result={};\n
>    values.forEach(function(item){\n        for(var i in item) {\n
>  result[i] = item[i];\n        }\n    });\n    return result;\n}\n" ,
> "verbose" : true , "out" : { "replace" : "user_statistics"}}; nested
> exception is com.mongodb.CommandResult$CommandFailure: command failed
> [mapreduce]: { "serverUsed" : "localhost/127.0.0.1:27017" , "errmsg" : "ns
> doesn't exist" , "ok" : 0.0}
> at
> org.springframework.data.mongodb.core.MongoTemplate.handleCommandError(MongoTemplate.java:1568)
> at
> org.springframework.data.mongodb.core.MongoTemplate.mapReduce(MongoTemplate.java:1011)
> at
> org.springframework.data.mongodb.core.MongoTemplate.mapReduce(MongoTemplate.java:985)
> at
> org.apache.rave.portal.repository.impl.MongoDbMapReduceStatisticsAggregator.executeUsersMapReduce(MongoDbMapReduceStatisticsAggregator.java:151)
> at
> org.apache.rave.portal.repository.impl.MongoDbMapReduceStatisticsAggregator.queryForUserStats(MongoDbMapReduceStatisticsAggregator.java:129)
> at
> org.apache.rave.portal.repository.impl.MongoDbMapReduceStatisticsAggregator.buildStats(MongoDbMapReduceStatisticsAggregator.java:123)
> at
> org.apache.rave.portal.repository.impl.MongoDbMapReduceStatisticsAggregator$1.run(MongoDbMapReduceStatisticsAggregator.java:112)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
> at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: com.mongodb.CommandResult$CommandFailure: command failed
> [mapreduce]: { "serverUsed" : "localhost/127.0.0.1:27017" , "errmsg" : "ns
> doesn't exist" , "ok" : 0.0}
> at com.mongodb.CommandResult.getException(CommandResult.java:88)
> at com.mongodb.CommandResult.throwOnError(CommandResult.java:134)
> at
> org.springframework.data.mongodb.core.MongoTemplate.handleCommandError(MongoTemplate.java:1562)
> ... 15 more

Mime
View raw message