-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployment in Lambda #13
Comments
What error message are you getting? |
Hello,
Thank you for your response.
At the same time I would like to apologize for my late reply because of my
health issues.
Please find the attached screenshot with this email.
We created a test.go file and it is running fine in our system. But at the
same time with word_count.go, we get the error as in the screenshot.
Currently me and my friend Riya are doing our research project on
map-and-reduce using your frame-work. Your help will be acknowledged.
Waiting for your reply.
[image: doubt_corral.png]
…On Sat, 14 May 2022, 19:46 Ben Congdon, ***@***.***> wrote:
What error message are you getting?
—
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AY7W3NWV42C3EVNVAOD7RRLVJ6YU3ANCNFSM5V2GJJMA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Thanks for your response, unfortunately it doesn't look like the image made its way to Github. Could you post it there directly? (Or even better, just copy/paste the message?) |
Hello,
please have a look.
I have cloned the code to the local system. Then I am trying to run it
locally first.
for word_count.go < as per the code mentioned on github page>
***@***.***:~/Desktop/work3/corral/examples/word_count$ go run
word_count.go
# command-line-arguments
./word_count.go:4:57: error: expected package
4 | func (w wordCount) Map(key, value string, emitter corral.Emitter) {
| ^
./word_count.go:10:52: error: expected package
10 | func (w wordCount) Reduce(key string, values corral.ValueIterator,
emitter corral.Emitter) {
| ^
./word_count.go:10:82: error: expected package
10 | func (w wordCount) Reduce(key string, values corral.ValueIterator,
emitter corral.Emitter) {
|
^
./word_count.go:5:23: error: reference to undefined name ‘strings’
5 | for _, word := range strings.Fields(value) {
| ^
./word_count.go:5:2: error: range clause must have array, slice, string,
map, or channel type
5 | for _, word := range strings.Fields(value) {
| ^
./word_count.go:12:2: error: range clause must have array, slice, string,
map, or channel type
12 | for range values.Iter() {
| ^
./word_count.go:15:20: error: reference to undefined name ‘strconv’
15 | emitter.Emit(key, strconv.Itoa(count))
| ^
./word_count.go:20:9: error: reference to undefined name ‘corral’
20 | job := corral.NewJob(wc, wc)
| ^
./word_count.go:22:12: error: reference to undefined name ‘corral’
22 | driver := corral.NewDriver(job)
| ^
./word_count.go:5:6: error: invalid type for range clause
5 | for _, word := range strings.Fields(value) {
| ^
For exactly the code in the folder.
***@***.***:~/Desktop/work3/corral/examples/word_count$ go run
word_count_original.go
# command-line-arguments
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.RawSyscallNoError':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:48:
undefined reference to
`golang.org..z2fx..z2fsys..z2funix.realSyscallNoError'
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.SyscallNoError':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:21:
undefined reference to
`golang.org..z2fx..z2fsys..z2funix.realSyscallNoError'
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.Syscall':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:28:
undefined reference to `golang.org..z2fx..z2fsys..z2funix.realSyscall'
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.Syscall6':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:35:
undefined reference to `golang.org..z2fx..z2fsys..z2funix.realSyscall'
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.Syscall9':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:42:
undefined reference to `golang.org..z2fx..z2fsys..z2funix.realSyscall'
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.RawSyscall':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:53:
undefined reference to `golang.org..z2fx..z2fsys..z2funix.realSyscall'
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.RawSyscall6':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:58:
undefined reference to `golang.org..z2fx..z2fsys..z2funix.realSyscall'
collect2: error: ld returned 1 exit status
…On Mon, May 23, 2022 at 7:18 PM Ben Congdon ***@***.***> wrote:
Thanks for your response, unfortunately it doesn't look like the image
made its way to Github. Could you post it there directly? (Or even better,
just copy/paste the message?)
—
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AY7W3NVZZD25V6E3RE5W3WDVLOEBJANCNFSM5V2GJJMA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*T*hanks & *R*egards,
*B*iswajeet *S*ethi
*PhD Scholar | IIT -KGP | Department of CSE*
*LinkedIN - https://www.linkedin.com/in/biswajeet-sethi-45039920/
<https://www.linkedin.com/in/biswajeet-sethi-45039920/>*
|
Hello,
Would you please look into it?
Waiting for your response.
On Tue, May 24, 2022 at 9:52 AM Biswajeet sethi ***@***.***>
wrote:
… Hello,
please have a look.
I have cloned the code to the local system. Then I am trying to run it
locally first.
for word_count.go < as per the code mentioned on github page>
***@***.***:~/Desktop/work3/corral/examples/word_count$ go run
word_count.go
# command-line-arguments
./word_count.go:4:57: error: expected package
4 | func (w wordCount) Map(key, value string, emitter corral.Emitter) {
| ^
./word_count.go:10:52: error: expected package
10 | func (w wordCount) Reduce(key string, values corral.ValueIterator,
emitter corral.Emitter) {
| ^
./word_count.go:10:82: error: expected package
10 | func (w wordCount) Reduce(key string, values corral.ValueIterator,
emitter corral.Emitter) {
|
^
./word_count.go:5:23: error: reference to undefined name ‘strings’
5 | for _, word := range strings.Fields(value) {
| ^
./word_count.go:5:2: error: range clause must have array, slice, string,
map, or channel type
5 | for _, word := range strings.Fields(value) {
| ^
./word_count.go:12:2: error: range clause must have array, slice, string,
map, or channel type
12 | for range values.Iter() {
| ^
./word_count.go:15:20: error: reference to undefined name ‘strconv’
15 | emitter.Emit(key, strconv.Itoa(count))
| ^
./word_count.go:20:9: error: reference to undefined name ‘corral’
20 | job := corral.NewJob(wc, wc)
| ^
./word_count.go:22:12: error: reference to undefined name ‘corral’
22 | driver := corral.NewDriver(job)
| ^
./word_count.go:5:6: error: invalid type for range clause
5 | for _, word := range strings.Fields(value) {
| ^
For exactly the code in the folder.
***@***.***:~/Desktop/work3/corral/examples/word_count$ go run
word_count_original.go
# command-line-arguments
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.RawSyscallNoError':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:48:
undefined reference to
`golang.org..z2fx..z2fsys..z2funix.realSyscallNoError'
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.SyscallNoError':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:21:
undefined reference to
`golang.org..z2fx..z2fsys..z2funix.realSyscallNoError'
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.Syscall':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:28:
undefined reference to `golang.org..z2fx..z2fsys..z2funix.realSyscall'
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.Syscall6':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:35:
undefined reference to `golang.org..z2fx..z2fsys..z2funix.realSyscall'
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.Syscall9':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:42:
undefined reference to `golang.org..z2fx..z2fsys..z2funix.realSyscall'
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.RawSyscall':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:53:
undefined reference to `golang.org..z2fx..z2fsys..z2funix.realSyscall'
/usr/bin/ld:
/home/biswajeet/.cache/go-build/a0/a0fc8e36b057c0356495ebb151fe9873e8c79b7c700035ade1a5aee716d41bab-d(_go_.o):
in function `golang.org..z2fx..z2fsys..z2funix.RawSyscall6':
/home/biswajeet/go/pkg/mod/
***@***.***/unix/gccgo.go:58:
undefined reference to `golang.org..z2fx..z2fsys..z2funix.realSyscall'
collect2: error: ld returned 1 exit status
On Mon, May 23, 2022 at 7:18 PM Ben Congdon ***@***.***>
wrote:
> Thanks for your response, unfortunately it doesn't look like the image
> made its way to Github. Could you post it there directly? (Or even better,
> just copy/paste the message?)
>
> —
> Reply to this email directly, view it on GitHub
> <#13 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AY7W3NVZZD25V6E3RE5W3WDVLOEBJANCNFSM5V2GJJMA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
--
*T*hanks & *R*egards,
*B*iswajeet *S*ethi
*PhD Scholar | IIT -KGP | Department of CSE*
*LinkedIN - https://www.linkedin.com/in/biswajeet-sethi-45039920/
<https://www.linkedin.com/in/biswajeet-sethi-45039920/>*
--
*T*hanks & *R*egards,
*B*iswajeet *S*ethi
*PhD Scholar | IIT -KGP | Department of CSE*
*LinkedIN - https://www.linkedin.com/in/biswajeet-sethi-45039920/
<https://www.linkedin.com/in/biswajeet-sethi-45039920/>*
|
This error makes it look the preamble (e.g. the
Did you modify that file after cloning? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Greetings of the day. First of I would like to thank you for sharing your marvelous work. It amazed me and I have just started exploring it.
Though I am facing issues in deploying it in lambda.
I have cloned the source code to my local system. I am also able to upload the word_count.go to a s3 bucket.
But then the command to deploy it in Lambda is not working for me. I am trying the run the command from my source code directory.
Would you please guide exactly what command should i use as per my system.
thanks in advance.
The text was updated successfully, but these errors were encountered: